From ba2ea82b5e015fae1f21d697ea4c04fcf5c5225a Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Mon, 9 Oct 2023 18:33:10 +0200 Subject: [PATCH] docker: Only push latest container to nxdk repo on master --- .github/workflows/build_docker_image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }}