Add new container for upstream CI/CD

This commit is contained in:
Philipp Holzer 2023-04-02 12:28:08 +02:00
commit 8e773da987
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
3 changed files with 72 additions and 0 deletions

25
codecov/Dockerfile Normal file
View file

@ -0,0 +1,25 @@
FROM alpine
RUN set -eux; \
apk add --no-cache --virtual .gosu-deps \
ca-certificates \
curl \
dpkg \
gnupg \
perl-utils \
; \
# verify the signature
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; \
# clean up fetch dependencies
apk del --no-network .gosu-deps; \
chmod +x /usr/local/bin/codecov; \
codecov --version;