CI - enabling deploy-production stage (#409)

This commit is contained in:
arshamparity
2021-09-22 17:10:36 +03:00
committed by GitHub
parent ec4c986501
commit 83aca45509
+14 -14
View File
@@ -43,7 +43,7 @@ default:
export DOCKER_IMAGE_TAG="${FORCE_DOCKER_TAG}"
elif [[ $CI_COMMIT_TAG =~ ^v[0-9]+\.[0-9]+.*$ ]]; then
export DOCKER_IMAGE_TAG="${CI_COMMIT_TAG}"
#export BUILD_LATEST_IMAGE="true"
export BUILD_LATEST_IMAGE="true"
else
export DOCKER_IMAGE_TAG="${CI_COMMIT_SHORT_SHA}-beta"
fi
@@ -163,16 +163,16 @@ deploy-staging:
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+.*$/' # i.e. v1.0, v2.1rc1
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
#deploy-production:
# variables:
# CONTAINER_REPO_BACKEND: "docker.io/parity/substrate-telemetry-backend"
# CONTAINER_REPO_FRONTEND: "docker.io/parity/substrate-telemetry-frontend"
# stage: deploy-production
# <<: *deploy
# environment:
# name: parity-prod
# rules:
# - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+.*$/' # i.e. v1.0, v2.1rc1
# when: manual
# - if: '$FORCE_DEPLOY == "true"'
# when: manual
deploy-production:
variables:
CONTAINER_REPO_BACKEND: "docker.io/parity/substrate-telemetry-backend"
CONTAINER_REPO_FRONTEND: "docker.io/parity/substrate-telemetry-frontend"
stage: deploy-production
<<: *deploy
environment:
name: parity-prod
rules:
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+.*$/' # i.e. v1.0, v2.1rc1
when: manual
- if: '$FORCE_DEPLOY == "true"'
when: manual