Skip to content

Commit

Permalink
fix cloudsql instance name
Browse files Browse the repository at this point in the history
  • Loading branch information
nomnomnonono committed Nov 3, 2023
1 parent 1c60408 commit 30d9201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rails-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
LOCATION: ${{ secrets.LOCATION }}
AR_REPOSITORY_NAME: ${{ secrets.AR_REPOSITORY_NAME }}
IMAGE: ${{ secrets.LOCATION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.AR_REPOSITORY_NAME }}/app:latest
CLOUD_SQL_INSTANCE_NAME: ${{ secrets.GCP_PROJECT_ID }}:${{ secrets.LOCATION }}:${{ secrets.CLOUD_SQL_INSTANCE_NAME }}
CLOUD_SQL_INSTANCE_NAME: ${{ secrets.CLOUD_SQL_INSTANCE_NAME }}

jobs:
deploy:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
service: ${{ secrets.APP_NAME }}
image: ${{ env.IMAGE }}
region: ${{ env.LOCATION }}
flags: '--add-cloudsql-instances=${{ env.CLOUD_SQL_INSTANCE_NAME }}'
flags: '--add-cloudsql-instances=${{ env.GCP_PROJECT_ID }}:${{ env.LOCATION }}:${{ env.CLOUD_SQL_INSTANCE_NAME }}'
env_vars:
INSTANCE_CONNECTION_NAME=${{ env.GCP_PROJECT_ID }}:${{ env.LOCATION }}:${{ env.CLOUD_SQL_INSTANCE_NAME }},
DB_USERNAME=${{ secrets.CLOUD_SQL_USER_NAME }},
Expand Down

0 comments on commit 30d9201

Please sign in to comment.