From d5e5594b17f97124ae09ff20f9ed5201b49a1b34 Mon Sep 17 00:00:00 2001 From: Paul Craig Date: Mon, 18 Nov 2024 18:35:30 -0500 Subject: [PATCH] Try it out --- .github/workflows/django_migrate.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/django_migrate.yml b/.github/workflows/django_migrate.yml index 358a024d..59f0a0e1 100644 --- a/.github/workflows/django_migrate.yml +++ b/.github/workflows/django_migrate.yml @@ -51,16 +51,13 @@ jobs: credentials_json: ${{ secrets.GCP_IAM_SA_CREDENTIALS }} # BEGIN - Django migration (if needed) + # sudo mv cloud_sql_proxy /usr/local/bin/ + - name: "Install Cloud SQL Auth Proxy" run: | curl -o cloud_sql_proxy https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 chmod +x cloud_sql_proxy - sudo mv cloud_sql_proxy /usr/local/bin/ - - # Start Cloud SQL Auth Proxy - - name: "Start Cloud SQL Auth Proxy" - run: | - ./cloud_sql_proxy ${{ secrets.GCP_CLOUD_CONNECTION_NAME }} & + cloud_sql_proxy ${{ secrets.GCP_CLOUD_CONNECTION_NAME }} & - name: Run migration - run: poetry run python manage.py migrate + run: poetry run python manage.py migrate --plan