From b2e921902f2b4835e7977048bdd58deabee37bef Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 1 Nov 2025 14:12:22 -0500 Subject: [PATCH] Push build images from CI --- .github/workflows/build.yml | 6 ++++++ build-single.sh | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37d16dc..9bd4a53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/build-single.sh b/build-single.sh index ad80e44..afcc00e 100755 --- a/build-single.sh +++ b/build-single.sh @@ -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 \ No newline at end of file