Skip to content

Commit

Permalink
Install codecov on aarch64 image variants (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe authored Mar 5, 2024
1 parent 22e2f13 commit 07274c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions ci-conda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,23 @@ EOF
# Install codecov binary
ARG CODECOV_VER
RUN <<EOF
curl https://uploader.codecov.io/verification.gpg --max-time 10 --retry 5 | gpg --no-default-keyring --keyring trustedkeys.gpg --import

case "${TARGETPLATFORM}" in
"linux/amd64")
curl https://uploader.codecov.io/verification.gpg --max-time 10 --retry 5 \
| gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os --max-time 10 --retry 5 https://uploader.codecov.io/v${CODECOV_VER}/linux/codecov
curl -Os --max-time 10 --retry 5 https://uploader.codecov.io/v${CODECOV_VER}/linux/codecov.SHA256SUM
curl -Os --max-time 10 --retry 5 https://uploader.codecov.io/v${CODECOV_VER}/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
mv codecov /usr/local/bin
rm -f codecov*
;;
*)
echo 'Codecov is only supported on "linux/amd64" machines'
;;
"linux/amd64") codecov_url="https://uploader.codecov.io/v${CODECOV_VER}/linux/codecov" ;;
"linux/arm64") codecov_url="https://uploader.codecov.io/v${CODECOV_VER}/aarch64/codecov" ;;
*) echo 'Unsupported platform' && exit 1 ;;
esac

curl -Os --max-time 10 --retry 5 ${codecov_url}
curl -Os --max-time 10 --retry 5 ${codecov_url}.SHA256SUM
curl -Os --max-time 10 --retry 5 ${codecov_url}.SHA256SUM.sig

gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
mv codecov /usr/local/bin
rm -f codecov.SHA256SUM codecov.SHA256SUM.sig
EOF

# Create condarc file from env vars
Expand Down
2 changes: 1 addition & 1 deletion versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SCCACHE_VER: 0.7.6
# renovate: datasource=github-releases depName=cli/cli
GH_CLI_VER: 2.45.0
# renovate: datasource=github-releases depName=codecov/uploader
CODECOV_VER: 0.3.2
CODECOV_VER: 0.7.2
# renovate: datasource=docker depName=mikefarah/yq versioning=docker
YQ_VER: 4.42.1
# renovate: datasource=github-releases depName=openucx/ucx
Expand Down

0 comments on commit 07274c1

Please sign in to comment.