From 89c39e170b65d5d153a47dc15608652ffda5c13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ku=CC=88pper?= Date: Thu, 23 Feb 2023 14:59:05 -0500 Subject: [PATCH 1/5] use different template for auth --- .github/workflows/build-int.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-int.yml b/.github/workflows/build-int.yml index 5b849ec39..a15213129 100644 --- a/.github/workflows/build-int.yml +++ b/.github/workflows/build-int.yml @@ -35,12 +35,10 @@ jobs: - run: echo ${{ steps.vars.outputs.sha7 }} if: ${{ github.event_name == 'push' }} - - name: Authenticate into Google Cloud Platform - uses: google-github-actions/setup-gcloud@main + - name: Authenticate into Google Cloud + uses: google-github-actions/auth@v1 with: - project_id: ${{ secrets.GCP_PROJECT }} - service_account_key: ${{ secrets.GCLOUD_KEY }} - export_default_credentials: true + credentials_json: ${{ secrets.GCLOUD_KEY }} - name: Configure Docker to use Google Cloud Platform run: "gcloud auth configure-docker --quiet" From b5615137bc91654c2c786f4583e4609c150b50ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ku=CC=88pper?= Date: Thu, 23 Feb 2023 15:16:13 -0500 Subject: [PATCH 2/5] escape password --- .github/workflows/build-int.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-int.yml b/.github/workflows/build-int.yml index a15213129..344424d14 100644 --- a/.github/workflows/build-int.yml +++ b/.github/workflows/build-int.yml @@ -1,4 +1,4 @@ -name: build +name: build-int on: push: @@ -70,7 +70,7 @@ jobs: --set-env-vars DATABASE_URL="${{ secrets.DATABASE_URL }}" \ --set-env-vars EMAIL_NOREPLY=noreply@bcc.no \ --set-env-vars EMAIL_SMTP_HOST=smtp.office365.com \ - --set-env-vars EMAIL_SMTP_PASSWORD=${{ secrets.EMAIL_SMTP_PASSWORD }} \ + --set-env-vars EMAIL_SMTP_PASSWORD="${{ secrets.EMAIL_SMTP_PASSWORD }}" \ --set-env-vars EMAIL_SMTP_PORT=587 \ --set-env-vars EMAIL_SMTP_USERNAME=noreply@bcc.no \ --set-env-vars HOST_DOMAIN=int-uservoice.bcc.no \ From a0aff331e939263faa86beda2cb3c65a85a3d8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ku=CC=88pper?= Date: Thu, 23 Feb 2023 15:22:16 -0500 Subject: [PATCH 3/5] temporarily remove failing password --- .github/workflows/build-int.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-int.yml b/.github/workflows/build-int.yml index 344424d14..2cfe6c7ed 100644 --- a/.github/workflows/build-int.yml +++ b/.github/workflows/build-int.yml @@ -70,7 +70,7 @@ jobs: --set-env-vars DATABASE_URL="${{ secrets.DATABASE_URL }}" \ --set-env-vars EMAIL_NOREPLY=noreply@bcc.no \ --set-env-vars EMAIL_SMTP_HOST=smtp.office365.com \ - --set-env-vars EMAIL_SMTP_PASSWORD="${{ secrets.EMAIL_SMTP_PASSWORD }}" \ + --set-env-vars EMAIL_SMTP_PASSWORD="asdf" \ --set-env-vars EMAIL_SMTP_PORT=587 \ --set-env-vars EMAIL_SMTP_USERNAME=noreply@bcc.no \ --set-env-vars HOST_DOMAIN=int-uservoice.bcc.no \ From dd809b8e40b6196d6667e88311f1a6b8552ebc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ku=CC=88pper?= Date: Thu, 23 Feb 2023 15:30:57 -0500 Subject: [PATCH 4/5] is dot allowed? --- .github/workflows/build-int.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-int.yml b/.github/workflows/build-int.yml index 2cfe6c7ed..4a2d9c404 100644 --- a/.github/workflows/build-int.yml +++ b/.github/workflows/build-int.yml @@ -70,7 +70,7 @@ jobs: --set-env-vars DATABASE_URL="${{ secrets.DATABASE_URL }}" \ --set-env-vars EMAIL_NOREPLY=noreply@bcc.no \ --set-env-vars EMAIL_SMTP_HOST=smtp.office365.com \ - --set-env-vars EMAIL_SMTP_PASSWORD="asdf" \ + --set-env-vars EMAIL_SMTP_PASSWORD="asd.f" \ --set-env-vars EMAIL_SMTP_PORT=587 \ --set-env-vars EMAIL_SMTP_USERNAME=noreply@bcc.no \ --set-env-vars HOST_DOMAIN=int-uservoice.bcc.no \ From 54e4b7c62daba4946f27e7665e20df32dacd7e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ku=CC=88pper?= Date: Thu, 23 Feb 2023 15:34:48 -0500 Subject: [PATCH 5/5] use custom delimiter --- .github/workflows/build-int.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-int.yml b/.github/workflows/build-int.yml index 4a2d9c404..4a51ef613 100644 --- a/.github/workflows/build-int.yml +++ b/.github/workflows/build-int.yml @@ -70,7 +70,7 @@ jobs: --set-env-vars DATABASE_URL="${{ secrets.DATABASE_URL }}" \ --set-env-vars EMAIL_NOREPLY=noreply@bcc.no \ --set-env-vars EMAIL_SMTP_HOST=smtp.office365.com \ - --set-env-vars EMAIL_SMTP_PASSWORD="asd.f" \ + --set-env-vars "^DELIM^EMAIL_SMTP_PASSWORD=${{ secrets.EMAIL_SMTP_PASSWORD }}" \ --set-env-vars EMAIL_SMTP_PORT=587 \ --set-env-vars EMAIL_SMTP_USERNAME=noreply@bcc.no \ --set-env-vars HOST_DOMAIN=int-uservoice.bcc.no \