reproxy/Dockerfile.artifacts

26 lines
696 B
Docker
Raw Normal View History

FROM goreleaser/goreleaser as build
WORKDIR /build
ADD . /build
2021-06-21 02:46:09 +03:00
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/
RUN \
mkdir -p /artifacts && \
cp /dist/*.gz /artifacts/ && \
cp /dist/*.zip /artifacts/ && \
cp /dist/*.txt /artifacts/ && \
2021-06-21 02:46:09 +03:00
cp /dist/*.sig /artifacts/ && \
cp /dist/*.rpm /artifacts/ && \
cp /dist/*.deb /artifacts/ && \
ls -la /artifacts/*
CMD ["sleep", "100"]