@@ -35,22 +35,17 @@ jobs:
35
35
36
36
steps :
37
37
- name : Checkout repository
38
- uses : actions/checkout@v3
38
+ uses : actions/checkout@v4
39
39
with :
40
40
submodules : recursive
41
-
42
- # Install the cosign tool except on PR
43
- # https://github.com/sigstore/cosign-installer
44
- - name : Install cosign
45
- if : github.event_name != 'pull_request'
46
- uses : sigstore/cosign-installer@7e0881f8fe90b25e305bbf0309761e9314607e25
47
- with :
48
- cosign-release : ' v1.9.0'
41
+
42
+ - name : Set up QEMU
43
+ uses : docker/setup-qemu-action@v3
49
44
50
45
51
46
# Workaround: https://github.com/docker/build-push-action/issues/461
52
47
- name : Setup Docker buildx
53
- uses : docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
48
+ uses : docker/setup-buildx-action@v3
54
49
55
50
# Login against a Docker registry except on PR
56
51
# https://github.com/docker/login-action
77
72
uses : docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
78
73
with :
79
74
file : helpers/Dockerfile
75
+ platforms : linux/amd64,linux/arm64
80
76
context : .
81
77
push : ${{ github.event_name != 'pull_request' }}
82
78
tags : ${{ steps.meta.outputs.tags }}
83
79
labels : ${{ steps.meta.outputs.labels }}
84
-
85
- # Sign the resulting Docker image digest except on PRs.
86
- # This will only write to the public Rekor transparency log when the Docker
87
- # repository is public to avoid leaking data. If you would like to publish
88
- # transparency data even for private images, pass --force to cosign below.
89
- # https://github.com/sigstore/cosign
90
- - name : Sign the published Docker image
91
- if : ${{ github.event_name != 'pull_request' }}
92
- env :
93
- COSIGN_EXPERIMENTAL : " true"
94
- # This step uses the identity token to provision an ephemeral certificate
95
- # against the sigstore community Fulcio instance.
96
- run : echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
0 commit comments