sign checksum file #95

This commit is contained in:
Umputun 2021-06-20 18:46:09 -05:00
parent 4fce9c412b
commit e4385240d4
3 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ dist/
docker-compose-private.yml
.vscode
.idea
*.gpg

View File

@ -1,3 +1,6 @@
signs:
- artifacts: checksum
builds:
- env:
- CGO_ENABLED=0

View File

@ -3,7 +3,12 @@ FROM goreleaser/goreleaser as build
WORKDIR /build
ADD . /build
RUN goreleaser --snapshot --skip-publish --rm-dist
RUN apk add -u gnupg
RUN \
export GNUPGHOME="$PWD/releaser-gpg" && export GNUPGHOME && mkdir -p "$GNUPGHOME" && chmod 0700 "$GNUPGHOME" && \
cat reproxy.signing-key.gpg | gpg --batch --allow-secret-key-import --import && \
goreleaser --snapshot --skip-publish --rm-dist
FROM alpine
COPY --from=build /build/dist/ /dist/
@ -12,6 +17,7 @@ RUN \
cp /dist/*.gz /artifacts/ && \
cp /dist/*.zip /artifacts/ && \
cp /dist/*.txt /artifacts/ && \
cp /dist/*.sig /artifacts/ && \
cp /dist/*.rpm /artifacts/ && \
cp /dist/*.deb /artifacts/ && \
ls -la /artifacts/*