Skip to content

Commit f458bb1

Browse files
Upgrade any step that was out of date
1 parent d526c8a commit f458bb1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)