Skip to content

Commit dc5c8b7

Browse files
committed
update
1 parent 2f57fd9 commit dc5c8b7

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,12 @@ env:
2020

2121
jobs:
2222
build:
23+
name: Build
2324
runs-on: ubuntu-latest
24-
strategy:
25-
fail-fast: false
26-
matrix:
27-
platform:
28-
- linux/amd64
29-
- linux/arm64
25+
concurrency:
26+
group: build-${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: true
3028
steps:
31-
- name: Prepare
32-
run: |
33-
platform=${{ matrix.platform }}
34-
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
35-
3629
- name: Checkout
3730
uses: actions/checkout@v4
3831

@@ -64,7 +57,7 @@ jobs:
6457
context: .
6558
push: ${{ startsWith(github.ref, 'refs/tags/') }}
6659
provenance: mode=max
67-
platforms: ${{ matrix.platform }}
60+
platforms: linux/amd64,linux/arm64
6861
tags: ${{ steps.meta.outputs.tags }}
6962
labels: ${{ steps.meta.outputs.labels }}
7063
annotations: ${{ steps.meta.outputs.annotations }}

0 commit comments

Comments
 (0)