Add conditions to trigger release via ci

This commit is contained in:
2025-04-17 11:07:32 +02:00
parent c6e5210443
commit 4c55605e63

View File

@@ -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
...