File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : " Release Build"
2
+
2
3
on :
3
- release :
4
- types : [published]
4
+ push :
5
+ branches :
6
+ - main
7
+
5
8
env :
6
9
CONTAINER_REGISTRY : ghcr.io/securecodebox
7
10
jobs :
@@ -11,22 +14,17 @@ jobs:
11
14
permissions :
12
15
contents : read
13
16
packages : write
14
- id-token : write # needed for signing the images with GitHub OIDC Token
15
17
steps :
16
18
- name : Checkout
17
19
uses : actions/checkout@v4
18
20
19
- - name : Install Cosign
20
- uses : sigstore/cosign-installer@v3
21
-
22
21
- id : image-metadata
23
22
name : Container Image Metadata
24
23
uses : docker/metadata-action@v5
25
24
with :
26
25
images : ${{ env.CONTAINER_REGISTRY }}/scan-deduplicator/scan-deduplicator
27
26
tags : |
28
- type=semver,pattern={{raw}}
29
-
27
+ latest
30
28
- name : Set up QEMU
31
29
uses : docker/setup-qemu-action@v3
32
30
- name : Set up Docker Buildx
48
46
push : true
49
47
tags : ${{ steps.image-metadata.outputs.tags }}
50
48
labels : ${{ steps.image-metadata.outputs.labels }}
51
-
52
- - name : Sign the images with GitHub OIDC Token
53
- env :
54
- DIGEST : ${{ steps.build-and-push.outputs.digest }}
55
- TAGS : ${{ steps.image-metadata.outputs.tags }}
56
- run : echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
You can’t perform that action at this time.
0 commit comments