feat(oci): Add OCI image generation

Not fully tested but it should produce an image in ghcr.io
This commit is contained in:
2025-08-03 22:27:24 +02:00
parent 50a9d0ddde
commit 0f3812b666
3 changed files with 54 additions and 0 deletions

38
.github/workflows/build-oci.yaml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Build OCI image
on:
release:
types:
- published
push:
branches:
- "features/**"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./oci/katenary/Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}