@@ -2,7 +2,7 @@ name: package
22on :
33 push :
44 tags :
5- - " *"
5+ - " *"
66permissions :
77 contents : read
88 packages : write
@@ -15,32 +15,32 @@ jobs:
1515 package :
1616 runs-on : ubuntu-24.04
1717 steps :
18- - name : Check out code
19- uses : actions/checkout@v4
20- with :
21- fetch-depth : 0
22- - name : Login to GitHub Container Registry
23- uses : docker/login-action@v3
24- with :
25- registry : ${{ env.REGISTRY }}
26- username : ${{ github.actor }}
27- password : ${{ secrets.GITHUB_TOKEN }}
28- - name : Extract metadata
29- uses : docker/metadata-action@v5
30- id : meta
31- with :
32- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
33- - name : Build and push Docker image
34- uses : docker/build-push-action@v6
35- id : push
36- with :
37- context : .
38- push : true
39- tags : ${{ steps.meta.outputs.tags }}
40- labels : ${{ steps.meta.outputs.labels }}
41- - name : Generate artifact attestation
42- uses : actions/attest-build-provenance@v2
43- with :
44- subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
45- subject-digest : ${{ steps.push.outputs.digest }}
46- push-to-registry : true
18+ - name : Check out code
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+ - name : Login to GitHub Container Registry
23+ uses : docker/login-action@v3
24+ with :
25+ registry : ${{ env.REGISTRY }}
26+ username : ${{ github.actor }}
27+ password : ${{ secrets.GITHUB_TOKEN }}
28+ - name : Extract metadata
29+ uses : docker/metadata-action@v5
30+ id : meta
31+ with :
32+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
33+ - name : Build and push Docker image
34+ uses : docker/build-push-action@v6
35+ id : push
36+ with :
37+ context : .
38+ push : true
39+ tags : ${{ steps.meta.outputs.tags }}
40+ labels : ${{ steps.meta.outputs.labels }}
41+ - name : Generate artifact attestation
42+ uses : actions/attest-build-provenance@v2
43+ with :
44+ subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
45+ subject-digest : ${{ steps.push.outputs.digest }}
46+ push-to-registry : true
0 commit comments