From 2d39476c656bdd792cf6bc6bc9ebb0e24a082cff Mon Sep 17 00:00:00 2001 From: purple_emily Date: Thu, 14 Mar 2024 14:27:19 +0000 Subject: [PATCH] Push dev builds & ready to tag semver (#153) --- .github/workflows/base_image_workflow.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/base_image_workflow.yaml b/.github/workflows/base_image_workflow.yaml index e8a7f70..bd5587d 100644 --- a/.github/workflows/base_image_workflow.yaml +++ b/.github/workflows/base_image_workflow.yaml @@ -70,8 +70,8 @@ jobs: flavor: | latest=auto tags: | - type=edge,branch=master,commit=${{ github.sha }} type=sha,commit=${{ github.sha }} + type=semver,pattern={{version}} type=raw,value=latest,enable={{is_default_branch}} - name: Build image for scanning @@ -130,7 +130,7 @@ jobs: sarif_file: 'trivy-results-os.sarif' - name: Push Service Image to repo - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' + # if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' uses: docker/build-push-action@v5 with: context: ${{ needs.set-vars.outputs.CONTEXT }}