diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index c7558c51..4f77b74e 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -62,6 +62,7 @@ jobs: - name: Build and push Docker image to GitHub Container Registry uses: docker/build-push-action@v5 + if: startsWith(github.ref, 'refs/tags') with: context: . push: true @@ -69,4 +70,4 @@ jobs: ghcr.io/${{ github.repository }}:${{ github.ref_name }} labels: ${{ steps.meta.outputs.labels }} build-args: | - GITHUB_REF_NAME=${{ github.ref_name }} \ No newline at end of file + GITHUB_REF_NAME=${{ github.ref_name }}