@@ -16,35 +16,49 @@ jobs:
16
16
strategy :
17
17
matrix :
18
18
tag : ["alpine", "clang-tools", "cpp", "package", "qt", "snap", "docker-cli", "sphinx"]
19
+ include :
20
+ - tag : alpine
21
+ platforms : linux/amd64,linux/arm64
22
+ - tag : cpp
23
+ platforms : linux/amd64,linux/arm64
19
24
permissions :
20
25
contents : read
21
26
packages : write
22
27
23
28
steps :
24
29
- name : Checkout repository
25
- uses : actions/checkout@v3
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Set up QEMU
33
+ uses : docker/setup-qemu-action@v3
34
+ if : matrix.platforms != ''
35
+
36
+ - name : Set up Docker Buildx
37
+ uses : docker/setup-buildx-action@v3
38
+ if : matrix.platforms != ''
26
39
27
40
- name : Log in to the Container registry
28
- uses : docker/login-action@v2
41
+ uses : docker/login-action@v3
29
42
with :
30
43
registry : ${{ env.REGISTRY }}
31
44
username : ${{ github.actor }}
32
45
password : ${{ secrets.GITHUB_TOKEN }}
33
46
34
47
- name : Extract metadata (tags, labels) for Docker
35
48
id : meta
36
- uses : docker/metadata-action@v4
49
+ uses : docker/metadata-action@v5
37
50
with :
38
51
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
39
52
tags : |
40
53
type=raw,value=${{ matrix.tag }}
41
54
42
55
- name : Build and push Docker image
43
- uses : docker/build-push-action@v4
56
+ uses : docker/build-push-action@v5
44
57
with :
45
58
context : .
46
59
file : Dockerfile.${{ matrix.tag }}
47
60
push : true
48
61
pull : true
49
62
tags : ${{ steps.meta.outputs.tags }}
50
63
labels : ${{ steps.meta.outputs.labels }}
64
+ platforms : ${{ matrix.platforms }}
0 commit comments