File tree Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change 10
10
IMAGE_NAME : ${{ github.repository }}
11
11
12
12
jobs :
13
- build :
13
+ build-x86 :
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : read
17
+ packages : write
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - name : Log in to the Container registry
21
+ uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
22
+ with :
23
+ registry : ${{ env.REGISTRY }}
24
+ username : ${{ github.actor }}
25
+ password : ${{ secrets.GITHUB_TOKEN }}
26
+ - name : Set up Docker Buildx
27
+ uses : docker/setup-buildx-action@v2
28
+
29
+ - name : Extract metadata (tags, labels) for Docker
30
+ id : meta
31
+ uses : docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
32
+ with :
33
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34
+
35
+ - name : Build and push Docker image
36
+ uses : docker/build-push-action@v4
37
+ with :
38
+ context : .
39
+ platforms : linux/amd64
40
+ push : true
41
+ tags : ${{ steps.meta.outputs.tags }}
42
+ labels : ${{ steps.meta.outputs.labels }}
43
+
44
+ build-arm :
14
45
runs-on : ubuntu-latest
15
46
permissions :
16
47
contents : read
38
69
uses : docker/build-push-action@v4
39
70
with :
40
71
context : .
41
- platforms : linux/amd64,linux/ arm64
72
+ platforms : linux/arm64
42
73
push : true
43
74
tags : ${{ steps.meta.outputs.tags }}
44
75
labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments