fix: replace aws-cli with curl for S3 checks to avoid python3 dependency issues on Alpine 3.23
Some checks failed
ci/crow/manual/build/1 Pipeline failed
ci/crow/manual/build/5 Pipeline failed
ci/crow/manual/build/2 Pipeline was successful
ci/crow/manual/build/4 Pipeline was successful
ci/crow/manual/build/3 Pipeline was successful
ci/crow/manual/build/6 Pipeline was successful
ci/crow/manual/build/8 Pipeline failed
ci/crow/manual/build/10 Pipeline failed
ci/crow/manual/build/9 Pipeline failed
ci/crow/manual/build/7 Pipeline failed
ci/crow/manual/build/14 Pipeline failed
ci/crow/manual/build/12 Pipeline failed
ci/crow/manual/build/13 Pipeline failed
ci/crow/manual/build/11 Pipeline failed
Some checks failed
ci/crow/manual/build/1 Pipeline failed
ci/crow/manual/build/5 Pipeline failed
ci/crow/manual/build/2 Pipeline was successful
ci/crow/manual/build/4 Pipeline was successful
ci/crow/manual/build/3 Pipeline was successful
ci/crow/manual/build/6 Pipeline was successful
ci/crow/manual/build/8 Pipeline failed
ci/crow/manual/build/10 Pipeline failed
ci/crow/manual/build/9 Pipeline failed
ci/crow/manual/build/7 Pipeline failed
ci/crow/manual/build/14 Pipeline failed
ci/crow/manual/build/12 Pipeline failed
ci/crow/manual/build/13 Pipeline failed
ci/crow/manual/build/11 Pipeline failed
This commit is contained in:
parent
e75479069e
commit
db4f305877
1 changed files with 4 additions and 10 deletions
|
|
@ -100,18 +100,13 @@ steps:
|
|||
|
||||
|
||||
- name: Check if files for R version already exist in s3
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: HETZNER_S3_ACCESS_KEY_K3S
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: HETZNER_S3_SECRET_KEY_K3S
|
||||
AWS_ENDPOINT_URL: https://fsn1.your-objectstorage.com
|
||||
image: reg.devxy.io/docker.io/library/alpine:3.23
|
||||
commands:
|
||||
- apk add -q --no-cache aws-cli
|
||||
- apk add -q --no-cache curl
|
||||
- |
|
||||
VERSION=$(cat r-version-to-build.txt)
|
||||
aws s3 ls s3://devxy-r-builds/${PLATFORM_ID}/ | \
|
||||
curl -s "https://fsn1.your-objectstorage.com/devxy-r-builds?prefix=${PLATFORM_ID}/" | \
|
||||
grep -oP '<Key>[^<]+</Key>' | sed 's/<[^>]*>//g' | \
|
||||
awk -v arch="${ARCH_ID}" -v ver="${VERSION}" \
|
||||
'$0 ~ arch && $0 ~ ver {print substr($NF, 3, 5)}' > r-version-s3.txt
|
||||
- cat r-version-s3.txt
|
||||
|
|
@ -130,8 +125,7 @@ steps:
|
|||
commands: |
|
||||
# docker info
|
||||
if ! grep -qF "$(cat r-version-to-build.txt)" r-version-s3.txt; then
|
||||
apk add -q --no-cache py3-pip make just aws-cli docker-compose
|
||||
pip3 install -q b2 --break-system-packages
|
||||
apk add -q --no-cache make just docker-compose
|
||||
just build-r-${PLATFORM} $(cat r-version-to-build.txt)
|
||||
fi
|
||||
backend_options:
|
||||
|
|
|
|||
Loading…
Reference in a new issue