File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 23
23
run : npx changelogithub-chinese
24
24
env :
25
25
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
26
- build :
26
+ build-multiarch :
27
27
runs-on : ubuntu-latest
28
+ strategy :
29
+ matrix :
30
+ platform : [linux/amd64, linux/arm64]
28
31
steps :
29
32
- uses : actions/checkout@v4
30
33
- name : Set env
@@ -34,14 +37,14 @@ jobs:
34
37
- name : Login to Docker Hub
35
38
uses : docker/login-action@v3
36
39
with :
37
- username : ${{secrets.HUB_USERNAME}}
38
- password : ${{secrets.HUB_PASSWORD}}
39
- - name : Build and push
40
+ username : ${{ secrets.HUB_USERNAME }}
41
+ password : ${{ secrets.HUB_PASSWORD }}
42
+ - name : Build and push for ${{ matrix.platform }}
40
43
uses : docker/build-push-action@v5
41
44
with :
42
45
context : .
43
46
push : true
44
47
tags : |
45
48
atianxiua/python-openbmclapi:latest
46
- atianxiua/python-openbmclapi:${{env.RELEASE_VERSION}}
47
- platforms : linux/amd64, linux/arm64
49
+ atianxiua/python-openbmclapi:${{ env.RELEASE_VERSION }}
50
+ platforms : ${{ matrix.platform }}
Original file line number Diff line number Diff line change 8
8
branches : [ master ]
9
9
10
10
jobs :
11
- build :
11
+ build-multiarch :
12
12
runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ platform : [linux/amd64, linux/arm64]
13
16
steps :
14
17
- uses : actions/checkout@v4
15
18
- name : Set env
@@ -19,13 +22,12 @@ jobs:
19
22
- name : Login to Docker Hub
20
23
uses : docker/login-action@v3
21
24
with :
22
- username : ${{secrets.HUB_USERNAME}}
23
- password : ${{secrets.HUB_PASSWORD}}
24
- - name : Build and push
25
+ username : ${{ secrets.HUB_USERNAME }}
26
+ password : ${{ secrets.HUB_PASSWORD }}
27
+ - name : Build and push for ${{ matrix.platform }}
25
28
uses : docker/build-push-action@v5
26
29
with :
27
30
context : .
28
31
push : true
29
- tags : |
30
- atianxiua/python-openbmclapi:next
31
- platforms : linux/amd64, linux/arm64
32
+ tags : atianxiua/python-openbmclapi:next
33
+ platforms : ${{ matrix.platform }}
You can’t perform that action at this time.
0 commit comments