Cleanup tag functions

This commit is contained in:
andrewc
2024-10-01 19:06:20 +10:00
parent 6e23ebcc3a
commit 72625988d1

View File

@@ -34,8 +34,6 @@ image:
- if: $CI_COMMIT_BRANCH == "dev" - if: $CI_COMMIT_BRANCH == "dev"
.commands: .commands:
get_tag:
- TAG=$(echo ${CI_COMMIT_MESSAGE} | tr -d \\n)
get_files: get_files:
- FILES=$(find . -name *$SEARCH -not -path "./.gitlab/*") - FILES=$(find . -name *$SEARCH -not -path "./.gitlab/*")
get_dirs: get_dirs:
@@ -132,7 +130,7 @@ image:
- poetry install - poetry install
- cd $CI_PROJECT_DIR/Fabrication - cd $CI_PROJECT_DIR/Fabrication
- 'SEARCH="bom.csv"' - 'SEARCH="bom.csv"'
- !reference [.commands, get_tag] - !reference [.commands, strip_tag]
- !reference [.commands, get_files] - !reference [.commands, get_files]
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/ - cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
- | - |
@@ -145,7 +143,7 @@ image:
git_tag: git_tag:
- !reference [.commands, get_tag] - !reference [.commands, strip_tag]
- | - |
if [[ $GITLAB_CI == 'true' && $CI_COMMIT_BRANCH == "main" ]]; then if [[ $GITLAB_CI == 'true' && $CI_COMMIT_BRANCH == "main" ]]; then
echo "running git tag" echo "running git tag"