Skip to content

Commit

Permalink
ci: fix path to canary binaries (aquasecurity#4045)
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk authored Apr 13, 2023
1 parent dcefc6b commit 90b8066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.canary
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ RUN apk --no-cache add ca-certificates git
# binaries were created with GoReleaser
# need to copy binaries from folder with correct architecture
# example architecture folder: dist/trivy_canary_build_linux_arm64/trivy
# GoReleaser adds _v* to the folder name, but only when GOARCH is amd64
ARG TARGETARCH
COPY "dist/trivy_canary_build_linux_${TARGETARCH}/trivy" /usr/local/bin/trivy
COPY "dist/trivy_canary_build_linux_${TARGETARCH}*/trivy" /usr/local/bin/trivy
COPY contrib/*.tpl contrib/
ENTRYPOINT ["trivy"]

0 comments on commit 90b8066

Please sign in to comment.