diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index 583750236..01fc7a674 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -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 }}