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

enable deploy

parent b63f0743
...@@ -39,12 +39,14 @@ variables: ...@@ -39,12 +39,14 @@ variables:
$CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs and from web interface $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs and from web interface
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs - 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 .deploy-prod-refs: &deploy-prod-refs
rules: rules:
- if: $CI_PIPELINE_SOURCE == "web" && - 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 $CI_COMMIT_REF_NAME == "master" # on commits to main branch and from web interface
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # on tags (i.e. v1.0, v2.1rc1) when: manual
- if: $CI_COMMIT_REF_NAME == "master" # on commits to main branch
when: manual
# Publish docker image and deploy it on staging # Publish docker image and deploy it on staging
.publish-deploy-stg-refs: &publish-deploy-stg-refs .publish-deploy-stg-refs: &publish-deploy-stg-refs
...@@ -138,8 +140,7 @@ publish-docker-bot: ...@@ -138,8 +140,7 @@ publish-docker-bot:
$CI_PROJECT_NAME helm/ $CI_PROJECT_NAME helm/
- kubectl get pods -n ${CI_PROJECT_NAME} - kubectl get pods -n ${CI_PROJECT_NAME}
# Disabled, enable after conigure HELM chart deploy-stg:
.deploy-stg:
stage: staging stage: staging
<<: *deploy-k8s <<: *deploy-k8s
<<: *kubernetes-env <<: *kubernetes-env
...@@ -150,7 +151,7 @@ publish-docker-bot: ...@@ -150,7 +151,7 @@ publish-docker-bot:
environment: environment:
name: parity-stg name: parity-stg
.deploy-prod: deploy-prod:
stage: production stage: production
<<: *deploy-k8s <<: *deploy-k8s
<<: *kubernetes-env <<: *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