From a1695cbdf549102f13f0f71a374460d7d2361ea9 Mon Sep 17 00:00:00 2001 From: Blake Mason Date: Tue, 29 Aug 2023 10:40:12 -0700 Subject: [PATCH] [C] ENV VARS include Hasura secret --- .github/workflows/dev-pull-request.yaml | 3 ++- .github/workflows/dev-push.yaml | 3 ++- .github/workflows/master-pr.yaml | 1 + .github/workflows/master-push.yaml | 3 ++- .github/workflows/prod-push.yaml | 1 + Dockerfile | 1 + 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-pull-request.yaml b/.github/workflows/dev-pull-request.yaml index 284e493e..7388bdd0 100644 --- a/.github/workflows/dev-pull-request.yaml +++ b/.github/workflows/dev-pull-request.yaml @@ -43,6 +43,7 @@ jobs: --build-arg NEXT_PUBLIC_PLAUSIBLE_DOMAIN= \ --build-arg NEXT_PREVIEW_SLUG=preview-in-craft-cms \ --build-arg NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql \ + --build-arg NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 \ --build-arg NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` \ . @@ -146,4 +147,4 @@ jobs: # Destruct! - name: Destroy version - run: gcloud app versions delete ${{ env.version_name }} --service=default \ No newline at end of file + run: gcloud app versions delete ${{ env.version_name }} --service=default diff --git a/.github/workflows/dev-push.yaml b/.github/workflows/dev-push.yaml index de5d53ef..dca62ef0 100644 --- a/.github/workflows/dev-push.yaml +++ b/.github/workflows/dev-push.yaml @@ -37,6 +37,7 @@ jobs: --build-arg NEXT_PUBLIC_PLAUSIBLE_DOMAIN= \ --build-arg NEXT_PREVIEW_SLUG=preview-in-craft-cms \ --build-arg NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql \ + --build-arg NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 \ --build-arg NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` \ . @@ -55,4 +56,4 @@ jobs: --quiet \ --image-url=gcr.io/${{ secrets.SV_PROJ_NAME }}/rubin-obs-client:${{ github.sha }} \ --promote \ - --project=${{ secrets.SV_PROJ_NAME }} \ No newline at end of file + --project=${{ secrets.SV_PROJ_NAME }} diff --git a/.github/workflows/master-pr.yaml b/.github/workflows/master-pr.yaml index 8e519736..dc3777cb 100644 --- a/.github/workflows/master-pr.yaml +++ b/.github/workflows/master-pr.yaml @@ -43,6 +43,7 @@ jobs: --build-arg NEXT_PUBLIC_PLAUSIBLE_DOMAIN= \ --build-arg NEXT_PREVIEW_SLUG=preview-in-craft-cms \ --build-arg NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql \ + --build-arg NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 \ --build-arg NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` \ . diff --git a/.github/workflows/master-push.yaml b/.github/workflows/master-push.yaml index adff4873..f9839403 100644 --- a/.github/workflows/master-push.yaml +++ b/.github/workflows/master-push.yaml @@ -37,6 +37,7 @@ jobs: --build-arg NEXT_PUBLIC_PLAUSIBLE_DOMAIN= \ --build-arg NEXT_PREVIEW_SLUG=preview-in-craft-cms \ --build-arg NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql \ + --build-arg NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 \ --build-arg NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` \ . @@ -54,4 +55,4 @@ jobs: gcloud app deploy app.yaml \ --image-url=gcr.io/edc-int-6c5e/skyviewer-client:${{ github.sha }} \ --promote \ - --project=edc-int-6c5e \ No newline at end of file + --project=edc-int-6c5e diff --git a/.github/workflows/prod-push.yaml b/.github/workflows/prod-push.yaml index 3a7f98c3..59fb9e6a 100644 --- a/.github/workflows/prod-push.yaml +++ b/.github/workflows/prod-push.yaml @@ -43,6 +43,7 @@ jobs: --build-arg NEXT_PUBLIC_PLAUSIBLE_DOMAIN=rubinobservatory.org \ --build-arg NEXT_PREVIEW_SLUG=preview-in-craft-cms \ --build-arg NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql \ + --build-arg NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 \ --build-arg NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` \ . - name: Configure Docker Auth diff --git a/Dockerfile b/Dockerfile index f3d27bb5..aabfb314 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ ARG NEXT_PUBLIC_CONTACT_FORM_POST_URL=https://api.rubinobs.org/actions/contact-f ARG NEXT_PUBLIC_PLAUSIBLE_DOMAIN=rubinobs.org ARG CLOUD_ENV=PROD ARG NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql +ARG NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 ARG NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` RUN npx browserslist@latest --update-db && yarn static:build