try use git tag instead of hash

This commit is contained in:
2024-10-18 17:13:30 +02:00
parent 67d5dfac9c
commit bc8be6360a

View File

@ -38,11 +38,11 @@ build_module:
script: script:
- sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile - sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile
- make install - make install
- cp -rT "/ioc/modules/counterbox/$(ls -U /ioc/modules/counterbox/ | head -1)" "./counterbox-${CI_COMMIT_SHORT_SHA}" - cp -rT "/ioc/modules/counterbox/$(ls -U /ioc/modules/counterbox/ | head -1)" "./counterbox-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}"
artifacts: artifacts:
name: "counterbox-${CI_COMMIT_SHORT_SHA}" name: "counterbox-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}"
paths: paths:
- "counterbox-${CI_COMMIT_SHORT_SHA}/*" - "counterbox-${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}/*"
expire_in: 1 week expire_in: 1 week
when: always when: always
tags: tags: