From b28a433bc03229330170fa8464b5e15b26f248be Mon Sep 17 00:00:00 2001 From: Nafis Zaman Date: Tue, 29 Oct 2024 15:08:18 -0700 Subject: [PATCH] Update workflows to use secrets needed for EULA support --- .github/workflows/cd-prod.yml | 8 ++++++++ .github/workflows/cd-staging.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index b83a2cce..f497e16f 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -74,5 +74,13 @@ jobs: --install \ --namespace prod \ --set imageVersion=${{ steps.check_version.outputs.VERSION }} \ + --set secrets.serviceAccountKeyString=$FIRESTORE_SERVICE_ACCOUNT \ + --set secrets.mailgunApiKey=$MAILGUN_API_KEY \ + --set secrets.mailgunDomain=$MAILGUN_DOMAIN \ --set apiUrl=http://database.prod.svc.cluster.local:4000 \ simulator ./simulator + shell: bash + env: + FIRESTORE_SERVICE_ACCOUNT: ${{ secrets.FIRESTORE_SERVICE_ACCOUNT }} + MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }} + MAILGUN_DOMAIN: ${{ secrets.MAILGUN_DOMAIN }} diff --git a/.github/workflows/cd-staging.yml b/.github/workflows/cd-staging.yml index 76779f14..825cbc55 100644 --- a/.github/workflows/cd-staging.yml +++ b/.github/workflows/cd-staging.yml @@ -105,5 +105,13 @@ jobs: --namespace prerelease \ --values ./simulator/values.prerelease.yaml \ --set imageVersion=${{ needs.build-publish.outputs.image_version }} \ + --set secrets.serviceAccountKeyString=$FIRESTORE_SERVICE_ACCOUNT \ + --set secrets.mailgunApiKey=$MAILGUN_API_KEY \ + --set secrets.mailgunDomain=$MAILGUN_DOMAIN \ --set apiUrl=http://database.prerelease.svc.cluster.local:4000 \ simulator-prerelease ./simulator + shell: bash + env: + FIRESTORE_SERVICE_ACCOUNT: ${{ secrets.FIRESTORE_SERVICE_ACCOUNT }} + MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }} + MAILGUN_DOMAIN: ${{ secrets.MAILGUN_DOMAIN }}