From ee51a5afb0162a4d08f5d8925da0dd943f0339aa Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 31 Dec 2022 12:17:38 -0300 Subject: [PATCH] fix: do not put binaries in /usr/local/bin (#3677) --- Dockerfile | 2 +- www/docs/customization/nfpm.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc4cdf1fe..27206e85c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN apk add --no-cache bash \ tini # install cosign -COPY --from=gcr.io/projectsigstore/cosign:v1.12.1@sha256:ac8e08a2141e093f4fd7d1d0b05448804eb3771b66574b13ad73e31b460af64d /ko-app/cosign /usr/local/bin/cosign +COPY --from=gcr.io/projectsigstore/cosign:v1.12.1@sha256:ac8e08a2141e093f4fd7d1d0b05448804eb3771b66574b13ad73e31b460af64d /ko-app/cosign /usr/bin/cosign ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] CMD [ "-h" ] diff --git a/www/docs/customization/nfpm.md b/www/docs/customization/nfpm.md index d278ac933..fe04cfa31 100644 --- a/www/docs/customization/nfpm.md +++ b/www/docs/customization/nfpm.md @@ -137,18 +137,18 @@ nfpms: # GoReleaser will automatically add the binaries. contents: # Basic file that applies to all packagers - - src: path/to/local/foo - dst: /usr/local/bin/foo + - src: path/to/foo + dst: /usr/bin/foo # Simple config file - - src: path/to/local/foo.conf + - src: path/to/foo.conf dst: /etc/foo.conf type: config # Simple symlink. # Corresponds to `ln -s /sbin/foo /usr/local/bin/foo` - src: /sbin/foo - dst: /usr/local/bin/foo + dst: /usr/bin/foo type: "symlink" # Corresponds to `%config(noreplace)` if the packager is rpm, otherwise it