Skip to content

Commit 78d7b5d

Browse files
authored
Merge pull request #232 from dtinit/GCP/add-GCloud-logging-vars-to-deploy-job
GCP: add GCloud logging vars to deploy job
2 parents d0621a8 + 9eb793d commit 78d7b5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
# - SERVICE_ACCOUNT_NAME: Email address of the service account used for Cloud Run
2929
# - DATABASE_NAME: PostgreSQL database name in Cloud SQL
3030
# - ARTIFACT_REGISTRY: Name of the container image
31+
# - USE_GCLOUD_LOGGING: Enable Cloud Logging
3132
#
3233
# ### GitHub Environment Secrets (per environment: Staging, Production)
3334
#
@@ -240,6 +241,7 @@ jobs:
240241
--set-env-vars DJANGO_SECRET_KEY="${{ secrets.DJANGO_SECRET_KEY }}"
241242
--set-env-vars DJ_DATABASE_CONN_STRING="postgres://${{ env.ENCODED_DB_CREDENTIALS }}@//cloudsql/${{ secrets.CLOUD_SQL_ICN }}/${{ vars.DATABASE_NAME }}"
242243
--set-env-vars EMAIL_HOST_PASSWORD="${{ secrets.EMAIL_HOST_PASSWORD }}"
244+
--set-env-vars USE_GCLOUD_LOGGING="${{ vars.USE_GCLOUD_LOGGING }}"
243245
--allow-unauthenticated
244246
245247

0 commit comments

Comments
 (0)