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 2323 run : npx changelogithub-chinese
2424 env :
2525 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
26- build :
26+ build-multiarch :
2727 runs-on : ubuntu-latest
28+ strategy :
29+ matrix :
30+ platform : [linux/amd64, linux/arm64]
2831 steps :
2932 - uses : actions/checkout@v4
3033 - name : Set env
@@ -34,14 +37,14 @@ jobs:
3437 - name : Login to Docker Hub
3538 uses : docker/login-action@v3
3639 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 }}
4043 uses : docker/build-push-action@v5
4144 with :
4245 context : .
4346 push : true
4447 tags : |
4548 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 88 branches : [ master ]
99
1010jobs :
11- build :
11+ build-multiarch :
1212 runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ platform : [linux/amd64, linux/arm64]
1316 steps :
1417 - uses : actions/checkout@v4
1518 - name : Set env
@@ -19,13 +22,12 @@ jobs:
1922 - name : Login to Docker Hub
2023 uses : docker/login-action@v3
2124 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 }}
2528 uses : docker/build-push-action@v5
2629 with :
2730 context : .
2831 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