Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
substrate-tip-bot
Commits
1b4421d9
Verified
Commit
1b4421d9
authored
Jun 28, 2022
by
Alexander
Browse files
enable deploy
parent
b63f0743
Changes
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1b4421d9
...
...
@@ -39,12 +39,14 @@ variables:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs and from web interface
-
if
:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/
# PRs
# Deploy on production goes only
on tag
# Deploy on production goes only
manually
.deploy-prod-refs
:
&deploy-prod-refs
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "web" &&
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/
# on tags (i.e. v1.0, v2.1rc1) and from web interface
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/
# on tags (i.e. v1.0, v2.1rc1)
$CI_COMMIT_REF_NAME == "master"
# on commits to main branch and from web interface
when
:
manual
-
if
:
$CI_COMMIT_REF_NAME == "master"
# on commits to main branch
when
:
manual
# Publish docker image and deploy it on staging
.publish-deploy-stg-refs
:
&publish-deploy-stg-refs
...
...
@@ -138,8 +140,7 @@ publish-docker-bot:
$CI_PROJECT_NAME helm/
-
kubectl get pods -n ${CI_PROJECT_NAME}
# Disabled, enable after conigure HELM chart
.deploy-stg
:
deploy-stg
:
stage
:
staging
<<
:
*deploy-k8s
<<
:
*kubernetes-env
...
...
@@ -150,7 +151,7 @@ publish-docker-bot:
environment
:
name
:
parity-stg
.
deploy-prod
:
deploy-prod
:
stage
:
production
<<
:
*deploy-k8s
<<
:
*kubernetes-env
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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