Skip to content

Commit

Permalink
fix the arch
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydin <batuhan.apaydin@chainguard.dev>
  • Loading branch information
developer-guy authored and Elizafox committed Sep 19, 2023
1 parent 4b95715 commit 7e7a042
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/build/pipelines/goreleaser/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,10 @@ pipeline:
goreleaser release $goreleaser_flags
echo "Copying binary to ${{inputs.output}}"
install -Dm755 ./dist/${BASENAME}_linux_*/* "${{inputs.output}}"
build_arch="${{build.arch}}"
if [ "$build_arch" = "aarch64" ]; then
build_arch="arm64"
elif [ "$build_arch" = "x86_64" ]; then
build_arch="amd64"
fi
install -Dm755 ./dist/${BASENAME}_linux_$build_arch*/* "${{inputs.output}}"

0 comments on commit 7e7a042

Please sign in to comment.