2023-04-02 12:28:08 +02:00
|
|
|
FROM alpine
|
|
|
|
|
2023-04-02 12:30:27 +02:00
|
|
|
RUN set -ex; \
|
|
|
|
apk add --no-cache --virtual .gosu-deps \
|
2023-04-02 12:28:08 +02:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
dpkg \
|
|
|
|
gnupg \
|
|
|
|
perl-utils \
|
|
|
|
; \
|
|
|
|
# verify the signature
|
2023-04-02 12:30:27 +02:00
|
|
|
export GNUPGHOME="$(mktemp -d)"; \
|
|
|
|
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import; \
|
|
|
|
curl -Os https://uploader.codecov.io/latest/alpine/codecov; \
|
|
|
|
curl -Os https://uploader.codecov.io/latest/alpine/codecov.SHA256SUM; \
|
|
|
|
curl -Os https://uploader.codecov.io/latest/alpine/codecov.SHA256SUM.sig; \
|
|
|
|
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM; \
|
|
|
|
shasum -a 256 -c codecov.SHA256SUM; \
|
|
|
|
command -v gpgconf && gpgconf --kill all || :; \
|
|
|
|
rm -rf "$GNUPGHOME" codecov.SHA256SUM codecov.SHA256SUM.sig; \
|
|
|
|
mv codecov /usr/local/bin/codecov; \
|
2023-04-02 12:28:08 +02:00
|
|
|
# clean up fetch dependencies
|
2023-04-02 12:30:27 +02:00
|
|
|
apk del --no-network .gosu-deps; \
|
|
|
|
chmod +x /usr/local/bin/codecov; \
|
|
|
|
codecov --version;
|