Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57328a7fc8 | ||
|
|
948569a659 | ||
|
|
50cdfd8180 |
@@ -46,4 +46,5 @@ deploy:
|
||||
- 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
|
||||
- POD=$(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}')
|
||||
- ./kubectl exec $POD -- python manage.py migrate
|
||||
@@ -16,7 +16,9 @@ spec:
|
||||
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: gitlab
|
||||
name: $DEPLOY
|
||||
- secretRef:
|
||||
name: $django-secrets
|
||||
volumeMounts:
|
||||
- mountPath: /app/db
|
||||
name: $DEPLOY
|
||||
|
||||
@@ -5,4 +5,12 @@ html, body {
|
||||
|
||||
.section, .container {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -20,6 +20,7 @@ var count = document.getElementById("COUNT");
|
||||
|
||||
button.addEventListener("click", event => {
|
||||
button.disabled = true;
|
||||
button.classList.add("is-loading");
|
||||
fetch('/button', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
@@ -34,6 +35,7 @@ button.addEventListener("click", event => {
|
||||
count.innerText = data.pressed;
|
||||
}).finally(() => {
|
||||
button.disabled = false;
|
||||
button.classList.remove("is-loading");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user