Skip to content

Commit

Permalink
docker: Only push latest container to nxdk repo on master
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter authored and thrimbor committed Oct 9, 2023
1 parent 88d18d6 commit ba2ea82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ jobs:
- name: Login to Docker Registry
uses: docker/login-action@v2
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' && matrix.tag == 'latest'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker Image
uses: docker/build-push-action@v3
if: github.ref == 'refs/heads/master' && matrix.tag == 'latest'
with:
push: true
build-args: ${{ matrix.build-args }}
Expand Down

0 comments on commit ba2ea82

Please sign in to comment.