Push build images from CI

This commit is contained in:
Cameron Gutman
2025-11-01 14:12:22 -05:00
parent dc45b12b7e
commit b2e921902f
2 changed files with 11 additions and 0 deletions

View File

@@ -84,6 +84,12 @@ jobs:
submodules: 'recursive'
fetch-depth: 1
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Setup Emulation
if: matrix.os == 'ubuntu-24.04'
run: docker run --privileged --rm tonistiigi/binfmt --install all

View File

@@ -23,3 +23,8 @@ else
fi
docker run --rm --mount type=bind,source="$(pwd)"/$OUT_DIR,target=/out --mount type=bind,source="$(pwd)"/debian,target=/opt/debian -e COMMIT="$3" cgutman/moonlight-packaging:$TAG_NAME
# Push the image now if we're building master in GitHub Actions
if [ $PULL_EXIT_CODE -ne 0 ] && [ "$GITHUB_REF" == "refs/heads/master" ]; then
docker push cgutman/moonlight-packaging:$TAG_NAME
fi