Verified Commit 1b4421d9 authored by Alexander's avatar Alexander
Browse files

enable deploy

parent b63f0743
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment