Skip to content
Snippets Groups Projects

Resolve "Create secrets for postgres from gitlab CI"

Merged Kenzo-Hugo Hillion requested to merge 39-secrets-in-ci into dev
4 files
+ 14
21
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 3
0
@@ -9,6 +9,9 @@ kubectl create secret docker-registry -n ${NAMESPACE} registry-gitlab --docker-s
## SECRET_KEY for Django
kubectl delete secret backend-secret -n ${NAMESPACE} --ignore-not-found=true
kubectl create secret generic backend-secret -n ${NAMESPACE} --from-literal=secret_key=${SECRET_KEY}
## Credentials for postgres
kubectl delete secret postgresql-credentials -n ${NAMESPACE} --ignore-not-found=true
kubectl create secret generic postgresql-credentials -n ${NAMESPACE} --from-literal=username=${POSTGRES_USER} --from-literal=password=${POSTGRES_PASSWORD} --from-literal=database=${POSTGRES_DB}
# Deployement
## DB
Loading