From a1f4124d28bf0327b05231b544dcd69b34ac5650 Mon Sep 17 00:00:00 2001 From: Richard Ward Date: Thu, 18 Dec 2025 22:39:43 +0000 Subject: [PATCH] publish build image --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25a09ae..0d3ae49 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: permissions: contents: write + packages: write jobs: release: @@ -43,6 +44,21 @@ jobs: -f .github/workflows/Dockerfile \ -t sdl3_app:${{ matrix.platform }}-${{ matrix.arch }} . + - name: Log in to GitHub Container Registry + if: matrix.platform == 'linux' + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish build image + if: matrix.platform == 'linux' + run: | + IMAGE=ghcr.io/${{ github.repository_owner }}/sdl3_app:${{ matrix.platform }}-${{ matrix.arch }} + docker tag sdl3_app:${{ matrix.platform }}-${{ matrix.arch }} "$IMAGE" + docker push "$IMAGE" + - name: Run linux build in container if: matrix.platform == 'linux' env: