From f65c68fe966ec512d65c89973eebfb251e9aa7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Fri, 19 Apr 2024 11:13:35 +0200 Subject: [PATCH] chore: add usersnap api key to frontend makefile --- .github/workflows/build-and-deploy-beta.yml | 1 + .github/workflows/build-and-deploy-dev.yml | 1 + .github/workflows/build-and-deploy-staging.yml | 1 + .github/workflows/build-and-deploy-test.yml | 1 + govtool/frontend/.env.example | 6 ++++++ govtool/frontend/Makefile | 1 + 6 files changed, 11 insertions(+) create mode 100644 govtool/frontend/.env.example diff --git a/.github/workflows/build-and-deploy-beta.yml b/.github/workflows/build-and-deploy-beta.yml index f4cba16ee..2bdbd8af8 100644 --- a/.github/workflows/build-and-deploy-beta.yml +++ b/.github/workflows/build-and-deploy-beta.yml @@ -32,6 +32,7 @@ jobs: PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }} IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }} + USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }} steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/build-and-deploy-dev.yml b/.github/workflows/build-and-deploy-dev.yml index b620989ca..4e732e642 100644 --- a/.github/workflows/build-and-deploy-dev.yml +++ b/.github/workflows/build-and-deploy-dev.yml @@ -31,6 +31,7 @@ jobs: PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }} IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }} + USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }} steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/build-and-deploy-staging.yml b/.github/workflows/build-and-deploy-staging.yml index f53352b35..01a88f231 100644 --- a/.github/workflows/build-and-deploy-staging.yml +++ b/.github/workflows/build-and-deploy-staging.yml @@ -33,6 +33,7 @@ jobs: PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }} IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }} + USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }} steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/build-and-deploy-test.yml b/.github/workflows/build-and-deploy-test.yml index 8c4a3424c..44c064aa3 100644 --- a/.github/workflows/build-and-deploy-test.yml +++ b/.github/workflows/build-and-deploy-test.yml @@ -33,6 +33,7 @@ jobs: PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }} IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }} + USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }} steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/govtool/frontend/.env.example b/govtool/frontend/.env.example new file mode 100644 index 000000000..f7ac65b56 --- /dev/null +++ b/govtool/frontend/.env.example @@ -0,0 +1,6 @@ +VITE_BASE_URL="" +VITE_NETWORK_FLAG=0 +VITE_SENTRY_DSN="" +VITE_GTM_ID="" +VITE_IS_DEV=true +VITE_USERSNAP_SPACE_API_KEY="" \ No newline at end of file diff --git a/govtool/frontend/Makefile b/govtool/frontend/Makefile index f8dd5c348..a9c19da18 100644 --- a/govtool/frontend/Makefile +++ b/govtool/frontend/Makefile @@ -19,6 +19,7 @@ build-frontend: docker-login --build-arg VITE_GTM_ID="$${GTM_ID}" \ --build-arg VITE_NETWORK_FLAG="$$NETWORK_FLAG" \ --build-arg VITE_SENTRY_DSN="$${SENTRY_DSN}" \ + --build-arg VITE_USERSNAP_SPACE_API_KEY="$${USERSNAP_SPACE_API_KEY}" \ $(root_dir)/govtool/frontend .PHONY: push-frontend