6
6
7
7
jobs :
8
8
docker-hub :
9
- name : Push Docker image to Docker Hub
9
+ name : Push multi-arch Docker image to Docker Hub
10
10
runs-on : ubuntu-latest
11
11
permissions :
12
12
contents : read
13
13
14
14
steps :
15
15
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16
16
17
+ - name : Set up QEMU
18
+ uses : docker/setup-qemu-action@4574d27a4764455b42196d70a065bc6853246a25 # v3.4.0
19
+
20
+ - name : Set up Docker Buildx
21
+ uses : docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
22
+
17
23
- name : Log in to Docker Hub
18
24
uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
19
25
with :
@@ -24,11 +30,14 @@ jobs:
24
30
uses : docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
25
31
with :
26
32
context : .
33
+ platforms : linux/amd64,linux/arm64
27
34
push : true
28
35
tags : " ${{ github.repository }}:${{ github.event.release.tag_name }}-alpine"
36
+ cache-from : type=gha
37
+ cache-to : type=gha,mode=max
29
38
30
39
ghcr-io :
31
- name : Push Docker image to ghcr.io
40
+ name : Push multi-arch Docker image to ghcr.io
32
41
runs-on : ubuntu-latest
33
42
permissions :
34
43
contents : read
37
46
steps :
38
47
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39
48
49
+ - name : Set up QEMU
50
+ uses : docker/setup-qemu-action@4574d27a4764455b42196d70a065bc6853246a25 # v3.4.0
51
+
52
+ - name : Set up Docker Buildx
53
+ uses : docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
54
+
40
55
- name : Log in to GHCR
41
56
uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
42
57
with :
48
63
uses : docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
49
64
with :
50
65
context : .
66
+ platforms : linux/amd64,linux/arm64
51
67
push : true
52
68
tags : " ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}-alpine"
69
+ cache-from : type=gha
70
+ cache-to : type=gha,mode=max
0 commit comments