From 1ff4f5fd1df80ade30a5bd0cf2a55bfbce25c01b Mon Sep 17 00:00:00 2001 From: Niraj Date: Mon, 9 Dec 2024 16:25:02 +0545 Subject: [PATCH] chore: add missing ipfs gateway and project id env for test stack --- .github/workflows/build-and-deploy-test-stack.yml | 4 +++- tests/test-infrastructure/.env.example | 4 +++- tests/test-infrastructure/docker-compose-govtool.yml | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy-test-stack.yml b/.github/workflows/build-and-deploy-test-stack.yml index 01802be3c..522c723b8 100644 --- a/.github/workflows/build-and-deploy-test-stack.yml +++ b/.github/workflows/build-and-deploy-test-stack.yml @@ -61,7 +61,7 @@ jobs: cd $DEST_DIR/tests/test-infrastructure ./build-and-deploy.sh update-images yes | docker system prune -f || echo "Ignoring system prune eror" - envs: GOVTOOL_TAG, GRAFANA_ADMIN_PASSWORD, GRAFANA_SLACK_RECIPIENT, GRAFANA_SLACK_OAUTH_TOKEN, SENTRY_DSN_BACKEND, GTM_ID, NPMRC_TOKEN, SENTRY_DSN_FRONTEND, PIPELINE_URL, USERSNAP_SPACE_API_KEY, APP_ENV, PDF_API_URL, KUBER_API_KEY + envs: GOVTOOL_TAG, GRAFANA_ADMIN_PASSWORD, GRAFANA_SLACK_RECIPIENT, GRAFANA_SLACK_OAUTH_TOKEN, SENTRY_DSN_BACKEND, GTM_ID, NPMRC_TOKEN, SENTRY_DSN_FRONTEND, PIPELINE_URL, USERSNAP_SPACE_API_KEY, APP_ENV, PDF_API_URL, KUBER_API_KEY, IPFS_GATEWAY, IPFS_PROJECT_ID env: GOVTOOL_TAG: ${{ github.sha }} GRAFANA_ADMIN_PASSWORD: ${{ secrets.GRAFANA_ADMIN_PASSWORD }} @@ -76,3 +76,5 @@ jobs: APP_ENV: test PDF_API_URL: ${{ secrets.PDF_API_URL }} KUBER_API_KEY: ${{ secrets.KUBER_API_KEY }} + IPFS_GATEWAY: $${{secrets.IPFS_GATEWAY}} + IPFS_PROJECT_ID: $${{secrets.IPFS_PROJECT_ID}} diff --git a/tests/test-infrastructure/.env.example b/tests/test-infrastructure/.env.example index 7e9b3932b..82a24d40a 100644 --- a/tests/test-infrastructure/.env.example +++ b/tests/test-infrastructure/.env.example @@ -7,4 +7,6 @@ BASE_DOMAIN=govtool.cardanoapi.io GOVTOOL_TAG=test APP_ENV=test PDF_API_URL= -KUBER_API_KEY= \ No newline at end of file +KUBER_API_KEY= +IPFS_GATEWAY="" +IPFS_PROJECT_ID="" \ No newline at end of file diff --git a/tests/test-infrastructure/docker-compose-govtool.yml b/tests/test-infrastructure/docker-compose-govtool.yml index 25b91ecc3..7cdbaec79 100644 --- a/tests/test-infrastructure/docker-compose-govtool.yml +++ b/tests/test-infrastructure/docker-compose-govtool.yml @@ -48,6 +48,8 @@ services: VITE_METADATA_API_URL: https://${BASE_DOMAIN}/metadata-validation VITE_GTM_ID: ${GTM_ID} VITE_PDF_API_URL: ${PDF_API_URL} + VITE_IPFS_GATEWAY: ${IPFS_GATEWAY} + VITE_IPFS_PROJECT_ID: ${IPFS_PROJECT_ID} environment: VIRTUAL_HOST: https://${BASE_DOMAIN} networks: