Param Config
This commit is contained in:
parent
dc8e842967
commit
39b347cd92
@ -1,5 +1,21 @@
|
|||||||
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
|
||||||
@ -39,7 +55,7 @@ jobs:
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
command: >
|
command: >
|
||||||
helm upgrade
|
helm upgrade
|
||||||
lecoffre-back devops/ -i -f devops/ppd.values.yaml
|
lecoffre-back devops/ -i -f devops/<<parameters.env>>.values.yaml
|
||||||
-n lecoffre
|
-n lecoffre
|
||||||
--create-namespace
|
--create-namespace
|
||||||
--set lecoffreBack.image.repository='rg.fr-par.scw.cloud/lecoffre/back'
|
--set lecoffreBack.image.repository='rg.fr-par.scw.cloud/lecoffre/back'
|
||||||
@ -48,7 +64,7 @@ jobs:
|
|||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build-and-register:
|
build-and-deploy-stg:
|
||||||
jobs:
|
jobs:
|
||||||
- build-push-docker-image:
|
- build-push-docker-image:
|
||||||
filters:
|
filters:
|
||||||
@ -56,11 +72,33 @@ workflows:
|
|||||||
only: /^v.*/
|
only: /^v.*/
|
||||||
branches:
|
branches:
|
||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
|
context:
|
||||||
|
- staging
|
||||||
- deploy-docker-image:
|
- deploy-docker-image:
|
||||||
requires:
|
requires:
|
||||||
- build-push-docker-image
|
- build-push-docker-image
|
||||||
context:
|
context:
|
||||||
- staging
|
- staging
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^v.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
|
||||||
|
build-and-deploy-ppd:
|
||||||
|
jobs:
|
||||||
|
- build-push-docker-image:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^v.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
context:
|
||||||
|
- production
|
||||||
|
- deploy-docker-image:
|
||||||
|
requires:
|
||||||
|
- build-push-docker-image
|
||||||
|
context:
|
||||||
- production
|
- production
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
@ -68,3 +106,24 @@ workflows:
|
|||||||
branches:
|
branches:
|
||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
|
|
||||||
|
# build-and-deploy-prod:
|
||||||
|
# jobs:
|
||||||
|
# - build-push-docker-image:
|
||||||
|
# filters:
|
||||||
|
# tags:
|
||||||
|
# only: /^v.*/
|
||||||
|
# branches:
|
||||||
|
# ignore: /.*/
|
||||||
|
# context:
|
||||||
|
# - production
|
||||||
|
# - deploy-docker-image:
|
||||||
|
# requires:
|
||||||
|
# - build-push-docker-image
|
||||||
|
# context:
|
||||||
|
# - production
|
||||||
|
# filters:
|
||||||
|
# tags:
|
||||||
|
# only: /^v.*/
|
||||||
|
# branches:
|
||||||
|
# ignore: /.*/
|
||||||
|
|
||||||
|
@ -21,5 +21,5 @@ version: 0.0.1
|
|||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: 0.4.7
|
appVersion: 0.4.4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user