mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-04-23 12:18:50 +02:00
fix: do not put binaries in /usr/local/bin (#3677)
This commit is contained in:
parent
ad40cb0349
commit
ee51a5afb0
@ -13,7 +13,7 @@ RUN apk add --no-cache bash \
|
|||||||
tini
|
tini
|
||||||
|
|
||||||
# install cosign
|
# 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"]
|
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
|
||||||
CMD [ "-h" ]
|
CMD [ "-h" ]
|
||||||
|
@ -137,18 +137,18 @@ nfpms:
|
|||||||
# GoReleaser will automatically add the binaries.
|
# GoReleaser will automatically add the binaries.
|
||||||
contents:
|
contents:
|
||||||
# Basic file that applies to all packagers
|
# Basic file that applies to all packagers
|
||||||
- src: path/to/local/foo
|
- src: path/to/foo
|
||||||
dst: /usr/local/bin/foo
|
dst: /usr/bin/foo
|
||||||
|
|
||||||
# Simple config file
|
# Simple config file
|
||||||
- src: path/to/local/foo.conf
|
- src: path/to/foo.conf
|
||||||
dst: /etc/foo.conf
|
dst: /etc/foo.conf
|
||||||
type: config
|
type: config
|
||||||
|
|
||||||
# Simple symlink.
|
# Simple symlink.
|
||||||
# Corresponds to `ln -s /sbin/foo /usr/local/bin/foo`
|
# Corresponds to `ln -s /sbin/foo /usr/local/bin/foo`
|
||||||
- src: /sbin/foo
|
- src: /sbin/foo
|
||||||
dst: /usr/local/bin/foo
|
dst: /usr/bin/foo
|
||||||
type: "symlink"
|
type: "symlink"
|
||||||
|
|
||||||
# Corresponds to `%config(noreplace)` if the packager is rpm, otherwise it
|
# Corresponds to `%config(noreplace)` if the packager is rpm, otherwise it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user