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
fadea931
Commit
fadea931
authored
Mar 23, 2021
by
rajkumar
Browse files
Updating deploy tasks using rules.
parent
42b8859a
Pipeline
#278348
skipped with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
.gitlab-ci.yml
.gitlab-ci.yml
+6
-6
No files found.
.gitlab-ci.yml
View file @
fadea931
...
...
@@ -38,12 +38,12 @@ docker-build-test:
docker-build-prod
:
stage
:
package
only
:
-
/^(\d+\.)?(\d+\.)?(\*|\d+)$/
variables
:
-
$CI_COMMIT_BRANCH == "master"
#
rules:
#
- if: '$CI_COMMIT_BRANCH == "master"'
#
only:
#
- /^(\d+\.)?(\d+\.)?(\*|\d+)$/
#
variables:
#
- $CI_COMMIT_BRANCH == "master"
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+)$/'
...
...
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