Add conditions to trigger release via ci
This commit is contained in:
@@ -28,4 +28,9 @@ release:
|
||||
- export TAG="${CI_COMMIT_TAG:-latest}" && echo $TAG
|
||||
- docker build -t ${IMAGE_NAME}:${TAG} .
|
||||
- docker push ${IMAGE_NAME}:${TAG}
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "master"
|
||||
when: on_success
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: on_success
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user