ci: fixed goreleaser latest version binary name breaking buildx (#1019)

* ci: fixed goreleaser version

* fix: updated goreleaser configuration

* chore: rename arm64_v8.0 binary
This commit is contained in:
Felipe Martin 2024-12-08 14:37:43 +01:00 committed by GitHub
parent 660d425288
commit afe49d62ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View file

@ -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 }}

View file

@ -1,3 +1,5 @@
version: 2
before:
hooks:
- go mod tidy
@ -55,7 +57,7 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc

View file

@ -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} \