Skip to content

Commit 116d8f1

Browse files
committed
chore(ci): fix build workflow
1 parent 99b71a1 commit 116d8f1

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/build-tagging.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ jobs:
2222
run: |
2323
# `github.head_ref` only exists for pull_request events
2424
REF="${{ github.head_ref || github.ref }}"
25-
VERSION="${REF#release/}"
26-
VERSION="${VERSION#refs/tags/}"
25+
VERSION="${REF#refs/tags/}"
26+
VERSION="${VERSION#refs/heads/}"
27+
VERSION="${VERSION#release/}"
2728
2829
echo "Version: $VERSION"
2930
echo "VERSION=$VERSION" >> $GITHUB_ENV

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ jobs:
5454
# since docker push actions will override the previous images,
5555
# so need to build `linux/amd64` and push first,
5656
# then build `linux/amd64` twice with other archs (build very slow so keep it last).
57-
target:
58-
- linux/amd64
59-
- linux/amd64
60-
- linux/arm64
61-
- linux/arm/v7
57+
target: ["linux/amd64", "linux/amd64,linux/arm64,linux/arm/v7"]
6258
with:
6359
version: ${{ needs.tagging.outputs.version }}
6460
dry_run: ${{ inputs.dry_run || false }}

0 commit comments

Comments
 (0)