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