Fix up path of token again
This commit is contained in:
@@ -129,7 +129,6 @@ image:
|
|||||||
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
|
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
|
||||||
- apt update && apt install curl 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
|
|
||||||
- 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
|
||||||
@@ -148,7 +147,7 @@ image:
|
|||||||
do
|
do
|
||||||
echo $f
|
echo $f
|
||||||
name=$(echo $f | cut -c3- | cut -d'-' -f1)A
|
name=$(echo $f | cut -c3- | cut -d'-' -f1)A
|
||||||
poetry run python -m kintree_cli -p $CI_PROJECT_DIR/Fabrication/$f --assembly "{'ipn': '$name', 'rev': '$TAG'}" --settings $KINTREE_SETT --digi_token /tmp/token_storage.json
|
poetry run python -m kintree_cli -p $CI_PROJECT_DIR/Fabrication/$f --assembly "{'ipn': '$name', 'rev': '$TAG'}" --settings $KINTREE_SETT --digi_token token_storage.json
|
||||||
done
|
done
|
||||||
- |
|
- |
|
||||||
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file /tmp/token_storage.json $url
|
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file /tmp/token_storage.json $url
|
||||||
|
|||||||
Reference in New Issue
Block a user