From be5054190012c29691766373a159be2b1edd2a4b Mon Sep 17 00:00:00 2001 From: Matteo Hoeren Date: Sat, 14 Nov 2026 10:06:50 +0100 Subject: [PATCH] ci: build FREILab image and publish to ghcr.io/freilab/part-db-server --- .github/workflows/freilab_image.yml | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/freilab_image.yml diff --git a/.github/workflows/freilab_image.yml b/.github/workflows/freilab_image.yml new file mode 100644 index 000000000..315cf1b52 --- /dev/null +++ b/.github/workflows/freilab_image.yml @@ -0,0 +1,50 @@ +# FREILab: build our fork's image and publish it to GHCR. +# Deployed by Komodo (FREILab/manifests, part-db stack), which polls the :master tag. +# Kept in a separate file so syncing with upstream Part-DB never conflicts. +name: FREILab image + +on: + push: + branches: [master] + workflow_dispatch: + +permissions: + contents: read + packages: write + +concurrency: + group: freilab-image + cancel-in-progress: true + +jobs: + build: + if: github.repository == 'FREILab/Part-DB-server' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: docker/setup-buildx-action@v3 + + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/freilab/part-db-server + tags: | + type=raw,value=master + type=sha + + - uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/amd64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max