id
This commit is contained in:
parent
6c233c4147
commit
0aefc61783
1 changed files with 9 additions and 17 deletions
26
.github/workflows/push.yml
vendored
26
.github/workflows/push.yml
vendored
|
|
@ -34,23 +34,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
id: build-and-push
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: false
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
|
|
||||||
- name: Attest build provenance
|
|
||||||
uses: actions/attest-build-provenance@v1
|
|
||||||
with:
|
|
||||||
artifact-digest: ${{ steps.push.outputs.digest }}
|
|
||||||
artifact-type: 'container-image'
|
|
||||||
artifact-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
||||||
materials: '[{"uri":"git+https://github.com/${{ github.repository }}","digest":{"sha1":"${{ github.sha }}"},"mediaType":"application/vnd.github.v3+json"}]'
|
|
||||||
|
|
||||||
- name: Push Docker image
|
|
||||||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|
@ -58,3 +43,10 @@ jobs:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
- name: Attest build provenance
|
||||||
|
uses: actions/attest-build-provenance@v1
|
||||||
|
with:
|
||||||
|
artifact-digest: ${{ steps.build-and-push.outputs.digest }}
|
||||||
|
artifact-type: 'container-image'
|
||||||
|
artifact-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
materials: '[{"uri":"git+https://github.com/${{ github.repository }}","digest":{"sha1":"${{ github.sha }}"},"mediaType":"application/vnd.github.v3+json"}]'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue