File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,32 @@ jobs:
1717 runs-on : ubuntu-latest
1818 name : Build Docker Image
1919
20+ strategy :
21+ matrix :
22+ platform : [linux/amd64, linux/arm64]
23+
2024 steps :
21- - name : git checkout
25+ - name : Git checkout
2226 uses : actions/checkout@v3
2327
2428 - name : Set up Docker Buildx
25- uses : docker/setup-buildx-action@v1
29+ uses : docker/setup-buildx-action@v2
2630
2731 - name : Login to DockerHub
28- uses : docker/login-action@v1
32+ uses : docker/login-action@v2
2933 with :
3034 username : ${{ secrets.DOCKERHUB_USERNAME }}
3135 password : ${{ secrets.DOCKERHUB_TOKEN }}
3236
33- - name : Build and push
37+ - name : Build and Push
38+ id : build
3439 uses : docker/build-push-action@v2
3540 with :
3641 context : .
37- platforms : linux/amd64,linux/arm64
42+ platform : ${{ matrix.platform }}
3843 push : true
39- tags : basictheprogram/crossfire-server:latest
44+ tags : |
45+ basictheprogram/crossfire-server:latest
46+ basictheprogram/crossfire-server:${{ github.sha }}
47+ cache-from : type=gha
48+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments