Skip to content

Commit

Permalink
chore(ci): fix build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Apr 24, 2024
1 parent 99b71a1 commit 116d8f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-tagging.yml
Expand Up @@ -22,8 +22,9 @@ jobs:
run: |
# `github.head_ref` only exists for pull_request events
REF="${{ github.head_ref || github.ref }}"
VERSION="${REF#release/}"
VERSION="${VERSION#refs/tags/}"
VERSION="${REF#refs/tags/}"
VERSION="${VERSION#refs/heads/}"
VERSION="${VERSION#release/}"
echo "Version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Expand Up @@ -54,11 +54,7 @@ jobs:
# since docker push actions will override the previous images,
# so need to build `linux/amd64` and push first,
# then build `linux/amd64` twice with other archs (build very slow so keep it last).
target:
- linux/amd64
- linux/amd64
- linux/arm64
- linux/arm/v7
target: ["linux/amd64", "linux/amd64,linux/arm64,linux/arm/v7"]
with:
version: ${{ needs.tagging.outputs.version }}
dry_run: ${{ inputs.dry_run || false }}
Expand Down

0 comments on commit 116d8f1

Please sign in to comment.