Fixed wrong reference to ref, add force remove of file

This commit is contained in:
2024-04-01 22:56:25 -05:00
parent 19fab91db9
commit f71211c0b9
3 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,13 @@
when:
- event: tag
refs: [ref/tags/APIDEV-*, ref/tags/API-*]
ref: [ref/tags/APIDEV-*, ref/tags/API-*]
steps:
- name: (YABA.API) Determining Docker image version number (dev)
when:
- ref: refs/tags/APIDEV-*
image: alpine:latest
commands:
- rm tags.txt
- rm -f tags.txt
- echo ${CI_COMMIT_TAG} | sed -e "s/^APIDEV-//" >> tags.txt
- echo "latest-dev"
- name: (YABA.API) Determining Docker image version number (prod)
@ -15,7 +15,7 @@ steps:
when:
- ref: refs/tags/API-*
commands:
- rm tags.txt
- rm -f tags.txt
- echo ${CI_COMMIT_TAG} | sed -e "s/^API-//" >> tags.txt
- echo "latest"
- name: (YABA.API) Package and Upload Docker Image