Skip to content

Commit 119512f

Browse files
committed
RM-4344: removed rule for mr, added rule for deploy tag
1 parent 03f5ed6 commit 119512f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ variables:
1010
alias: docker
1111
tags:
1212
- dind
13-
rules:
14-
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
15-
when: on_success
16-
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
17-
when: on_success
18-
- when: never
1913
script:
2014
- source load-env.sh
2115
- cd shares-server
@@ -109,5 +103,10 @@ publish:server:
109103
variables:
110104
COMPONENT: shares-server
111105
DOCKER_IMAGE_NAME: $DOCKER_REGISTRY/${COMPONENT}
106+
rules:
107+
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
108+
when: on_success
109+
- if: '$CI_COMMIT_TAG =~ /^.*deploy.*$/'
110+
- when: never
112111
extends:
113112
- .publish-component

0 commit comments

Comments
 (0)