File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
.github/actions/deploy_gcloud Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -162,11 +162,11 @@ runs:
162
162
exit 1
163
163
fi
164
164
165
- ./manage.py migrate --no-input
166
-
167
165
envsubst <django_site/kubeconfig.yaml.tmpl >django_site/kubeconfig.yaml
168
166
envsubst <app.yaml.tmpl >app.yaml
169
167
168
+ ./manage.py migrate --no-input
169
+
170
170
gcloud app --quiet deploy app.yaml --project ${APP_ID} --version ${VERSION} --no-promote --no-cache
171
171
gcloud app --quiet deploy cron.yaml --project ${APP_ID} --version ${VERSION} --no-promote
172
172
Original file line number Diff line number Diff line change 9
9
10
10
from django .core .management import execute_from_command_line
11
11
12
+ # Need to setup GKE if running migrations
13
+ if sys .argv [1 ] == "migrate" :
14
+ import kubernetes
15
+
16
+ kubernetes .config .load_kube_config ("/home/runner/.kube/config" )
17
+
12
18
execute_from_command_line (sys .argv )
You can’t perform that action at this time.
0 commit comments