Fixed wrong reference to ref, add force remove of file
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
when:
|
||||
- event: [push, pull_request, tag]
|
||||
branch: [api/*]
|
||||
refs: [ref/tags/APIDEV-*, ref/tags/API-*]
|
||||
ref: [ref/tags/APIDEV-*, ref/tags/API-*]
|
||||
steps:
|
||||
- name: (YABA.API) Build and run tests
|
||||
when:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
when:
|
||||
- event: tag
|
||||
refs: [ref/tags/WEBDEV-*, ref/tags/WEB-*]
|
||||
ref: [ref/tags/WEBDEV-*, ref/tags/WEB-*]
|
||||
steps:
|
||||
- name: (YABA.Web) Determining Docker image version number (dev)
|
||||
when:
|
||||
- refs: refs/tags/WEBDEV-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm tags.txt
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^WEBDEV-//" >> tags.txt
|
||||
- echo "latest-dev"
|
||||
- name: (YABA.Web) Determining Docker image version number (prod)
|
||||
@ -15,7 +15,7 @@ steps:
|
||||
- refs: refs/tags/WEB-*
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- rm tags.txt
|
||||
- rm -f tags.txt
|
||||
- echo ${CI_COMMIT_TAG} | sed -e "s/^WEB-//" >> tags.txt
|
||||
- echo "latest"
|
||||
- name: (YABA.Web) Package and Upload Docker Image
|
||||
|
||||
Reference in New Issue
Block a user