We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f23bef7 commit d1fe60fCopy full SHA for d1fe60f
1 file changed
.github/workflows/build-attest.yml
@@ -41,13 +41,26 @@ jobs:
41
username: ${{ secrets.QUAY_USERNAME }}
42
password: ${{ secrets.QUAY_PASSWORD }}
43
44
+ - name: Extract metadata for container image
45
+ id: meta
46
+ uses: docker/metadata-action@v5
47
+ with:
48
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
49
+ tags: |
50
+ type=ref,event=branch
51
+ type=ref,event=pr
52
+ type=sha,prefix={{branch}}-
53
+ type=raw,value=latest,enable={{is_default_branch}}
54
+
55
- name: Build and push container image
56
id: push
57
uses: docker/build-push-action@v6
58
with:
59
context: .
60
file: ./Containerfile
61
push: true
62
+ tags: ${{ steps.meta.outputs.tags }}
63
+ labels: ${{ steps.meta.outputs.labels }}
64
65
- name: Generate SBOM for container image
66
uses: anchore/sbom-action@v0
0 commit comments