2024-05-23 10:14:10 +02:00
|
|
|
FROM goreleaser/goreleaser:v1.26.1 as build
|
2021-04-05 20:33:58 +02:00
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
ADD . /build
|
|
|
|
|
2021-06-21 01:46:09 +02: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 && \
|
2024-05-23 10:14:10 +02:00
|
|
|
goreleaser --snapshot --skip-publish --clean
|
2021-04-05 20:33:58 +02:00
|
|
|
|
|
|
|
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 01:46:09 +02:00
|
|
|
cp /dist/*.sig /artifacts/ && \
|
2021-04-05 20:33:58 +02:00
|
|
|
cp /dist/*.rpm /artifacts/ && \
|
|
|
|
cp /dist/*.deb /artifacts/ && \
|
|
|
|
ls -la /artifacts/*
|
|
|
|
|
|
|
|
CMD ["sleep", "100"]
|