mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
publish build image
This commit is contained in:
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user