@@ -27,13 +27,20 @@ jobs:
27
27
packages : write
28
28
steps :
29
29
- name : Checkout repository
30
- uses : actions/checkout@v2
30
+ uses : actions/checkout@v4
31
+
32
+ # Set up QEMU for multi-platform build
33
+ - name : Set up QEMU
34
+ uses : docker/setup-qemu-action@v3
35
+
36
+ - name : Set up Docker Buildx
37
+ uses : docker/setup-buildx-action@v3
31
38
32
39
# Login against a Docker registry except on PR
33
40
# https://github.com/docker/login-action
34
41
- name : Log into registry ${{ env.REGISTRY }}
35
42
if : github.event_name != 'pull_request'
36
- uses : docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
43
+ uses : docker/login-action@v3
37
44
with :
38
45
registry : ${{ env.REGISTRY }}
39
46
username : ${{ github.actor }}
@@ -43,16 +50,17 @@ jobs:
43
50
# https://github.com/docker/metadata-action
44
51
- name : Extract Docker metadata
45
52
id : meta
46
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
53
+ uses : docker/metadata-action@v5
47
54
with :
48
55
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
49
56
50
57
# Build and push Docker image with Buildx (don't push on PR)
51
58
# https://github.com/docker/build-push-action
52
59
- name : Build and push Docker image
53
- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
60
+ uses : docker/build-push-action@v5
54
61
with :
55
62
context : .
63
+ platforms : linux/amd64,linux/arm64
56
64
push : ${{ github.event_name != 'pull_request' }}
57
65
tags : ${{ steps.meta.outputs.tags }}
58
66
labels : ${{ steps.meta.outputs.labels }}
0 commit comments