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