File tree Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
8
8
jobs :
9
- build :
9
+ build-amd64 :
10
10
runs-on : ubuntu-latest
11
11
env :
12
12
IMAGE_NAME : mikanbot
@@ -25,10 +25,39 @@ jobs:
25
25
username : ${{ github.repository_owner }}
26
26
password : ${{ secrets.CR_PAT }}
27
27
28
- - name : Build and push
28
+ - name : Build and push (AMD64)
29
29
uses : docker/build-push-action@v4
30
30
with :
31
- platforms : linux/amd64,linux/arm64
31
+ platforms : linux/amd64
32
+ context : .
33
+ push : true
34
+ tags : |
35
+ ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
36
+ ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
37
+
38
+ build-arm64 :
39
+ runs-on : ubuntu-latest
40
+ env :
41
+ IMAGE_NAME : mikanbot
42
+
43
+ steps :
44
+ - name : Checkout code
45
+ uses : actions/checkout@v2
46
+
47
+ - name : Set up Docker Buildx
48
+ uses : docker/setup-buildx-action@v1
49
+
50
+ - name : Login to GitHub Container Registry
51
+ uses : docker/login-action@v2
52
+ with :
53
+ registry : ghcr.io
54
+ username : ${{ github.repository_owner }}
55
+ password : ${{ secrets.CR_PAT }}
56
+
57
+ - name : Build and push (ARM64)
58
+ uses : docker/build-push-action@v4
59
+ with :
60
+ platforms : linux/arm64
32
61
context : .
33
62
push : true
34
63
tags : |
You can’t perform that action at this time.
0 commit comments