@@ -41,21 +41,24 @@ jobs:
41
41
# https://github.com/sigstore/cosign-installer
42
42
- name : Install cosign
43
43
if : github.event_name != 'pull_request'
44
- uses : sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3.1.1
44
+ uses : sigstore/cosign-installer@v3 # v3.1.1
45
45
with :
46
46
cosign-release : ' v2.1.1'
47
47
48
+ - name : Set up QEMU
49
+ uses : docker/setup-qemu-action@v3
50
+
48
51
# Set up BuildKit Docker container builder to be able to build
49
52
# multi-platform images and export cache
50
53
# https://github.com/docker/setup-buildx-action
51
54
- name : Set up Docker Buildx
52
- uses : docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
55
+ uses : docker/setup-buildx-action@v3 # v3.0.0
53
56
54
57
# Login against a Docker registry except on PR
55
58
# https://github.com/docker/login-action
56
59
- name : Log into registry ${{ env.REGISTRY }}
57
60
if : github.event_name != 'pull_request'
58
- uses : docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
61
+ uses : docker/login-action@v3 # v3.0.0
59
62
with :
60
63
registry : ${{ env.REGISTRY }}
61
64
username : ${{ github.actor }}
@@ -65,20 +68,21 @@ jobs:
65
68
# https://github.com/docker/metadata-action
66
69
- name : Extract Docker metadata
67
70
id : meta
68
- uses : docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
71
+ uses : docker/metadata-action@v5 # v5.0.0
69
72
with :
70
73
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
71
74
72
75
# Build and push Docker image with Buildx (don't push on PR)
73
76
# https://github.com/docker/build-push-action
74
77
- name : Build and push Docker image
75
78
id : build-and-push
76
- uses : docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
79
+ uses : docker/build-push-action@v5 # v5.0.0
77
80
with :
78
81
context : .
79
82
push : ${{ github.event_name != 'pull_request' }}
80
83
tags : ${{ steps.meta.outputs.tags }}
81
84
labels : ${{ steps.meta.outputs.labels }}
85
+ platforms : linux/arm64,linux/amd64
82
86
cache-from : type=gha
83
87
cache-to : type=gha,mode=max
84
88
0 commit comments