Skip to content

Commit

Permalink
docker: Only build once and push to repo registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Oct 9, 2023
1 parent 88d18d6 commit 6b0d96f
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 6b0d96f

Please sign in to comment.