Fixed up token download

This commit is contained in:
andrewc
2024-10-08 11:34:09 +10:00
parent ba09a90c53
commit 7fa4a486db

View File

@@ -127,15 +127,15 @@ image:
boms:
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
- apt update && apt install curl wget pip -y && pip install --break-system-packages poetry
- apt update && apt install curl pip -y && pip install --break-system-packages poetry
- poetry install
- cd /tmp
- url="https://gitlab.com/api/v4/projects/${DIGI_API_PRJ_ID}/packages/generic/digikey_api/0/token_storage.json"
- |
if [[ -z "$KINTREE_DIGI_TOKEN" ]]; then
wget $url
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" $url >> token_storage.json
else
cp $KINTREE_DIGI_TOKEN token_storage.json
cp $KINTREE_DIGI_TOKEN token_storage.json
fi
- ls
- cd $CI_PROJECT_DIR/Fabrication