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
87a53a76
Commit
87a53a76
authored
Mar 23, 2021
by
rajkumar
Browse files
Updating deploy tasks using rules.
parent
33a2ee56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
.gitlab-ci.yml
.gitlab-ci.yml
+8
-4
No files found.
.gitlab-ci.yml
View file @
87a53a76
...
...
@@ -38,10 +38,14 @@ docker-build-test:
docker-build-prod
:
stage
:
package
only
:
-
tags && /^(\d+\.)?(\d+\.)?(\*|\d+)$/
variables
:
-
$CI_COMMIT_BRANCH == "master"
#only:
# - tags && /^(\d+\.)?(\d+\.)?(\*|\d+)$/
# variables:
# - $CI_COMMIT_BRANCH == "master"
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_REF_NAME =~ /^(\d+\.)?(\d+\.)?(\*|\d+)$/
except
:
-
triggers
...
...
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