mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-05-31 02:21:05 +00:00
CI - enabling deploy-production stage (#409)
This commit is contained in:
+14
-14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user