Fixed up token download
This commit is contained in:
@@ -127,15 +127,15 @@ image:
|
|||||||
|
|
||||||
boms:
|
boms:
|
||||||
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
|
- 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
|
- poetry install
|
||||||
- cd /tmp
|
- cd /tmp
|
||||||
- url="https://gitlab.com/api/v4/projects/${DIGI_API_PRJ_ID}/packages/generic/digikey_api/0/token_storage.json"
|
- 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
|
if [[ -z "$KINTREE_DIGI_TOKEN" ]]; then
|
||||||
wget $url
|
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" $url >> token_storage.json
|
||||||
else
|
else
|
||||||
cp $KINTREE_DIGI_TOKEN token_storage.json
|
cp $KINTREE_DIGI_TOKEN token_storage.json
|
||||||
fi
|
fi
|
||||||
- ls
|
- ls
|
||||||
- cd $CI_PROJECT_DIR/Fabrication
|
- cd $CI_PROJECT_DIR/Fabrication
|
||||||
|
|||||||
Reference in New Issue
Block a user