Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Update .gitlab-ci.yml (#117)
Browse files Browse the repository at this point in the history
deploy stg during release
  • Loading branch information
mordamax authored Jun 26, 2023
1 parent 6f6cd5f commit f273332
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ stages:
- test
- unit_test
- build
- deploy
- staging
- production

variables:
APP_PORT: 3000
Expand Down Expand Up @@ -43,6 +44,7 @@ default:
- if: $BUILD
when: never
- if: $CI_COMMIT_TAG =~ /^stg-v[0-9]+\.[0-9]+.*$/ # e.g. stg-v0.1
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+.*$/ # e.g. v0.1

.production-refs: &production-refs
rules:
Expand Down Expand Up @@ -118,7 +120,6 @@ build-production:

# Deploy to Kubernetes
.deploy-k8s: &deploy-k8s
stage: deploy
image: "paritytech/kubetools:3.5.3"
script:
# https://docs.gitlab.com/ee/ci/examples/authenticating-with-hashicorp-vault/#example
Expand All @@ -139,6 +140,7 @@ build-production:
deploy-staging:
<<: *staging-refs
<<: *deploy-k8s
stage: staging
variables:
VALUES_FILE: values-parity-stg.yaml
environment:
Expand All @@ -147,6 +149,7 @@ deploy-staging:
deploy-production:
<<: *production-refs
<<: *deploy-k8s
stage: production
variables:
VALUES_FILE: values-parity-prod.yaml
environment:
Expand Down

0 comments on commit f273332

Please sign in to comment.