Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
enasequence
webin-portal
Commits
c9696d7b
Commit
c9696d7b
authored
Mar 23, 2021
by
rajkumar
Browse files
Updating deploy tasks using rules.
parent
fadea931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
.gitlab-ci.yml
.gitlab-ci.yml
+5
-4
No files found.
.gitlab-ci.yml
View file @
c9696d7b
...
...
@@ -38,12 +38,13 @@ docker-build-test:
docker-build-prod
:
stage
:
package
# only:
only
:
-
/^(\d+\.)?(\d+\.)?(\*|\d+)$/ && tags && master
# - /^(\d+\.)?(\d+\.)?(\*|\d+)$/
# variables:
# - $CI_COMMIT_BRANCH == "master"
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"
&&
$CI_COMMIT_REF_NAME
=~
/^(\d+\.)?(\d+\.)?(\*|\d+)$/'
#
rules:
#
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_REF_NAME =~ /^(\d+\.)?(\d+\.)?(\*|\d+)$/'
# - if: '$CI_COMMIT_TAG'
# - if: '$CI_COMMIT_REF_NAME =~ /^(\d+\.)?(\d+\.)?(\*|\d+)$/'
...
...
@@ -87,7 +88,7 @@ k8s-deploy-prod:
image
:
dtzar/helm-kubectl
stage
:
deploy
only
:
-
/^(\d+\.)?(\d+\.)?(\*|\d+)$/
-
/^(\d+\.)?(\d+\.)?(\*|\d+)$/
&& tags && master
except
:
-
triggers
script
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment