Skip to content

Commit

Permalink
Try it out
Browse files Browse the repository at this point in the history
  • Loading branch information
pcraig3 committed Nov 18, 2024
1 parent 7919c00 commit d5e5594
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/django_migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d5e5594

Please sign in to comment.