Skip to content

Commit 6ae66f3

Browse files
committed
Updated CI rules
1 parent 1e75e43 commit 6ae66f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ build-branch:
2626
deploy-branch:
2727
stage: deploy
2828
image: us.gcr.io/planet-gcr/static
29+
rules:
30+
- if: '$CI_COMMIT_BRANCH == "main"'
31+
when: never
32+
- if: $CI_COMMIT_BRANCH
33+
when: on_success
2934
dependencies:
3035
- build-branch
3136
environment:

0 commit comments

Comments
 (0)