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

2
.gitmodules vendored
View File

@@ -5,4 +5,4 @@
[submodule ".scripts/ki-ntree"] [submodule ".scripts/ki-ntree"]
path = .scripts/ki-ntree path = .scripts/ki-ntree
url = https://github.com/Andrew-Collins/Ki-nTree url = https://github.com/Andrew-Collins/Ki-nTree
branch = cli branch = cli

View File

@@ -129,6 +129,7 @@ image:
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/ - cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
- apt update && apt install pip -y && pip install --break-system-packages poetry - apt update && apt install pip -y && pip install --break-system-packages poetry
- poetry install - poetry install
- ls
- cd $CI_PROJECT_DIR/Fabrication - cd $CI_PROJECT_DIR/Fabrication
- 'SEARCH="bom.csv"' - 'SEARCH="bom.csv"'
- !reference [.commands, strip_tag] - !reference [.commands, strip_tag]
@@ -138,8 +139,8 @@ image:
for f in $FILES for f in $FILES
do do
echo $f echo $f
name=$(echo $f | cut -d'-' -f1)A name=$(echo $f | cut -c3- | 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 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 done