Deploy Ppd
This commit is contained in:
parent
7386b1aaeb
commit
d4588db202
@ -26,6 +26,10 @@ jobs:
|
||||
|
||||
|
||||
deploy-docker-image:
|
||||
parameters:
|
||||
env:
|
||||
type: string
|
||||
default: ""
|
||||
docker:
|
||||
- image: cimg/base:stable
|
||||
environment:
|
||||
@ -39,7 +43,7 @@ jobs:
|
||||
name: Deploy
|
||||
command: >
|
||||
helm upgrade
|
||||
lecoffre-front devops/ -i -f devops/values.yaml
|
||||
lecoffre-front devops/ -i -f devops/<<parameters.env>>.values.yaml
|
||||
-n lecoffre
|
||||
--create-namespace
|
||||
--set lecoffreFront.image.repository='rg.fr-par.scw.cloud/lecoffre/front'
|
||||
@ -48,7 +52,7 @@ jobs:
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build-and-register:
|
||||
build-and-deploy-stg:
|
||||
jobs:
|
||||
- build-push-docker-image:
|
||||
filters:
|
||||
@ -67,3 +71,40 @@ workflows:
|
||||
branches:
|
||||
ignore: /.*/
|
||||
|
||||
build-and-deploy-ppd:
|
||||
jobs:
|
||||
- build-push-docker-image:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
- deploy-docker-image:
|
||||
requires:
|
||||
- build-push-docker-image
|
||||
context:
|
||||
- production
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
|
||||
# build-and-deploy-prod:
|
||||
# jobs:
|
||||
# - build-push-docker-image:
|
||||
# filters:
|
||||
# tags:
|
||||
# only: /^v.*/
|
||||
# branches:
|
||||
# ignore: /.*/
|
||||
# - deploy-docker-image:
|
||||
# requires:
|
||||
# - build-push-docker-image
|
||||
# context:
|
||||
# - production
|
||||
# filters:
|
||||
# tags:
|
||||
# only: /^v.*/
|
||||
# branches:
|
||||
# ignore: /.*/
|
||||
|
44
devops/ppd.values.yaml
Normal file
44
devops/ppd.values.yaml
Normal file
@ -0,0 +1,44 @@
|
||||
dockerPullSecret: secret/data/lecoffre-front-ppd/config/dockerpullsecret
|
||||
|
||||
namespace: lecoffre
|
||||
|
||||
lecoffreFront:
|
||||
serviceAccountName: lecoffre-front-sa
|
||||
command: "'sh', '-c', '. /vault/secrets/envs && npm run start'"
|
||||
vault:
|
||||
role : custom_lecoffre-front_injector_rol
|
||||
server: https://vault-ppd.smart-chain.fr
|
||||
annotations:
|
||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-inject-secret-envs: secret/data/lecoffre-front-ppd/config/envs
|
||||
vault.hashicorp.com/role: custom_lecoffre-front_injector_rol
|
||||
vault.hashicorp.com/agent-inject-template-envs: |
|
||||
{{ with secret "secret/data/lecoffre-front-ppd/config/envs" }}
|
||||
{{ range $k, $v := .Data.data }}
|
||||
export {{ $k }}="{{ $v }}"
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
imagePullSecrets:
|
||||
- name: docker-pull-secret
|
||||
image:
|
||||
pullPolicy: Always
|
||||
repository: "rg.fr-par.scw.cloud/lecoffre/front"
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 1Gi
|
||||
limits:
|
||||
memory: 2Gi
|
||||
ingress:
|
||||
host: app.ppd.lecoffre.smart-chain.fr
|
||||
tls:
|
||||
hosts:
|
||||
- app.ppd.lecoffre.smart-chain.fr
|
||||
secretName: app-tls
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
|
||||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user