Push build images from CI
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user