Skip to content

Commit

Permalink
ci: fixed goreleaser latest version binary name breaking buildx (go-s…
Browse files Browse the repository at this point in the history
…hiori#1019)

* ci: fixed goreleaser version

* fix: updated goreleaser configuration

* chore: rename arm64_v8.0 binary
  • Loading branch information
fmartingr authored Dec 8, 2024
1 parent 660d425 commit afe49d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_gorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # 6.0.0
with:
distribution: goreleaser
version: latest
version: v2.4.8
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -55,7 +57,7 @@ checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
Expand Down
4 changes: 4 additions & 0 deletions scripts/buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if [[ -d "dist/shiori_linux_amd64_v1" ]]; then
cp -r dist/shiori_linux_amd64_v1 dist/shiori_linux_amd64
fi

if [[ -d "dist/shiori_linux_arm64_v8.0" ]]; then
cp -r dist/shiori_linux_arm64_v8.0 dist/shiori_linux_arm64
fi

$CONTAINER_RUNTIME buildx build \
-f ${CONTAINERFILE_NAME} \
--platform=${BUILDX_PLATFORMS} \
Expand Down

0 comments on commit afe49d6

Please sign in to comment.