Updated kintree vars to work with CI

This commit is contained in:
andrewc
2024-10-02 10:08:23 +10:00
parent f64c9685ba
commit 2130e95fcf
3 changed files with 5 additions and 4 deletions

View File

@@ -129,6 +129,7 @@ image:
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
- apt update && apt install pip -y && pip install --break-system-packages poetry
- poetry install
- ls
- cd $CI_PROJECT_DIR/Fabrication
- 'SEARCH="bom.csv"'
- !reference [.commands, strip_tag]
@@ -138,8 +139,8 @@ image:
for f in $FILES
do
echo $f
name=$(echo $f | cut -d'-' -f1)A
poetry run python -m kintree_cli -p $f --assembly "{'ipn': '$name', 'rev': '$TAG'}" --settings_inv $KINTREE_SETT_INV --settings_ipn $KINTREE_SETT_IPN
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 $KINTREE_DIGI_TOKEN
done