Skip to content

Commit

Permalink
Update deploy-bdjuno-mainnet.yml
Browse files Browse the repository at this point in the history
added some fixes for cloudsqlproxy
  • Loading branch information
beb4now authored Nov 21, 2024
1 parent fa2567b commit 885fa04
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/deploy-bdjuno-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
GCLOUD_INSTANCE_CONNECTION_NAME=cudos-mainnet-infra:us-central1:sql-mainnet
CRYPTO_COMPARE_PROD_API_KEY="${{ secrets.CRYPTO_COMPARE_PROD_API_KEY }}"
CRYPTO_COMPARE_FREE_API_KEY="${{ secrets.CRYPTO_COMPARE_FREE_API_KEY }}"
LOGGING_DRIVER=gcplogs
EOF
chmod 644 .env
cat .env
Expand Down Expand Up @@ -161,7 +162,16 @@ jobs:
EOF
chmod 644 hasura/config.yaml
cat hasura/config.yaml
- name: Prepare container access
run: |
sudo mkdir -p /opt/secrets
sudo echo "${{ secrets.CLOUDSQL_CREDS_JSON }}" > /opt/secrets/cloudsqlcreds.json
sudo chown -R automgmt:automgmt /opt/secrets
gcloud auth activate-service-account --key-file=/opt/secrets/cloudsqlcreds.json
gcloud auth configure-docker
sudo docker pull gcr.io/cloudsql-docker/gce-proxy:1.33.15
- name: Deploy with Docker Compose
run: |
sudo docker compose --file=docker-compose-prod.yml up --build -d
Expand Down

0 comments on commit 885fa04

Please sign in to comment.