File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 62
62
- name : Build and push
63
63
if : ${{ steps.dependencies.outputs.VERSION != ''}}
64
64
uses : docker/build-push-action@v2
65
+ id : build-and-push
65
66
with :
66
67
context : .
67
68
build-args : |
74
75
platforms : linux/amd64,linux/arm64
75
76
push : true
76
77
tags : ghcr.io/${{ github.repository }}:${{steps.dependencies.outputs.VERSION}}
77
-
78
+
79
+ - uses : sigstore/cosign-installer@v3.3.0
80
+
81
+ - name : Image Signing
82
+ run : |
83
+ cosign sign --yes \
84
+ -a "repo=${{ github.repository }}" \
85
+ -a "workflow=${{ github.workflow }}" \
86
+ -a "ref=${{ github.sha }}" \
87
+ -a "owner=Spectro Cloud" \
88
+ --key env://COSIGN_PRIVATE_KEY --recursive "${TAGS}@${DIGEST}"
89
+ env :
90
+ TAGS : ghcr.io/${{ github.repository }}:${{steps.dependencies.outputs.VERSION}}
91
+ COSIGN_PRIVATE_KEY : ${{ secrets.COSIGN_PRIVATE_KEY }}
92
+ COSIGN_PASSWORD : ${{ secrets.COSIGN_PASSWORD }}
93
+ DIGEST : ${{ steps.build-and-push.outputs.digest }}
94
+
78
95
79
96
release :
80
97
name : " Release"
You can’t perform that action at this time.
0 commit comments