Compare commits

...

4 Commits

Author SHA1 Message Date
ducoterra
50cdfd8180 wrong configmap 2020-04-25 12:14:42 -04:00
ducoterra
8393efa3a6 fix yaml find and replace 2020-04-25 12:08:03 -04:00
ducoterra
b3db1816bb list dir 2020-04-25 12:01:07 -04:00
ducoterra
7123f4c389 rogue ' 2020-04-25 11:57:16 -04:00
3 changed files with 18 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ deploy:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- mkdir /deploy
- for f in $(find k8s -regex '.*\\.ya*ml'); do envsubst < $f > "/deploy/$(basename $f)"; done'
- for f in $(find k8s -regex '.*\.ya*ml'); do envsubst < $f > "/deploy/$(basename $f)"; done
- ./kubectl apply -f /deploy
- ./kubectl rollout status deploy $DEPLOY
- ./kubectl exec $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate

View File

@@ -16,7 +16,7 @@ spec:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
envFrom:
- configMapRef:
name: gitlab
name: $DEPLOY
volumeMounts:
- mountPath: /app/db
name: $DEPLOY

View File

@@ -0,0 +1,16 @@
html, body {
height: 100%;
width: 100%;
}
.section, .container {
height: 100%;
}
.container {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
text-align: center;
}