Param Config

This commit is contained in:
gisele-igore 2023-04-07 15:43:17 +02:00
parent 39b347cd92
commit 14c2b8fa02

View File

@ -1,21 +1,5 @@
version: 2.1 version: 2.1
parameters:
stg-devops-path:
type: string
description: Path to the values for stg cluster
default: ./devops/stg.values.yaml
ppd-devops-path:
type: string
description: Path to the values for ppd(prod) cluster
default: ./devops/ppd.values.yaml
prod-devops-path:
type: string
description: Path to the values for prod cluster
default: ./devops/prd.values.yaml
orbs: orbs:
kubernetes: circleci/kubernetes@1.0.0 kubernetes: circleci/kubernetes@1.0.0
helm: circleci/helm@2.0.1 helm: circleci/helm@2.0.1
@ -42,6 +26,10 @@ jobs:
deploy-docker-image: deploy-docker-image:
parameters:
env:
type: string
default: ""
docker: docker:
- image: cimg/base:stable - image: cimg/base:stable
environment: environment:
@ -75,6 +63,7 @@ workflows:
context: context:
- staging - staging
- deploy-docker-image: - deploy-docker-image:
env: stg
requires: requires:
- build-push-docker-image - build-push-docker-image
context: context:
@ -96,6 +85,7 @@ workflows:
context: context:
- production - production
- deploy-docker-image: - deploy-docker-image:
env: ppd
requires: requires:
- build-push-docker-image - build-push-docker-image
context: context:
@ -106,6 +96,7 @@ workflows:
branches: branches:
ignore: /.*/ ignore: /.*/
# build-and-deploy-prod: # build-and-deploy-prod:
# jobs: # jobs:
# - build-push-docker-image: # - build-push-docker-image: