Fixed up token download
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user