publish build image

This commit is contained in:
Richard Ward
2025-12-18 22:39:43 +00:00
parent a8fef34085
commit a1f4124d28

View File

@@ -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: