Skip to content

Commit

Permalink
Fix env vars for docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
john-craft committed Oct 24, 2023
1 parent 41adf25 commit e02a27c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
POSTGRES_PASSWORD: "dMVZFeBWLOzYRV71"
DB_USERNAME: "postgres"
POSTGRES_DB: "postgres"
DB_BACKUP_URL: "https://storage.googleapis.com/anonymize-db-backups/us-west1/backup.sql"

steps:
- name: Checkout code
Expand All @@ -40,7 +41,14 @@ jobs:
- name: Start PostgreSQL container
run: |
docker run -d --name $DB_HOST -e POSTGRES_USER:$DB_USERNAME -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -e POSTGRES_DB=$POSTGRES_DB -p 5432:5432 gcr.io/$GCP_PROEJCT_ID/$DB_HOST:latest
docker run -d --name $DB_HOST \
-e POSTGRES_USER=$DB_USERNAME \
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
-e POSTGRES_DB=$POSTGRES_DB \
-e RESTORE_FROM_BACKUP=True \
-e DB_BACKUP_URL=$DB_BACKUP_URL
-p 5432:5432 \
gcr.io/$GCP_PROEJCT_ID/$DB_HOST:latest
- name: Install Sequelize CLI and dependencies
run: |
Expand Down

0 comments on commit e02a27c

Please sign in to comment.