Push dev builds & ready to tag semver (#153)

This commit is contained in:
purple_emily
2024-03-14 14:27:19 +00:00
committed by GitHub
parent e7f987a0d7
commit 2d39476c65

View File

@@ -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 }}