From 41567b7dabb2d0ce057f6fc038f9c795e6d0d091 Mon Sep 17 00:00:00 2001 From: Yauheni Date: Fri, 7 Jun 2024 00:27:42 +0300 Subject: [PATCH] Adds envs for GTM id: Battleship, Tamagotchi-battle, Galactix-express, Varaman --- .github/workflows/Release-DeployBattleship.yml | 1 + .github/workflows/Release-galactic-express.yml | 1 + .github/workflows/Release-tamagochi-battle.yml | 1 + .github/workflows/Release-varaman.yml | 1 + frontend/apps/battleship/Dockerfile | 6 ++++-- frontend/apps/galactic-express/Dockerfile | 4 +++- frontend/apps/tamagotchi-battle/Dockerfile | 4 +++- frontend/apps/vara-man/Dockerfile | 4 +++- 8 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Release-DeployBattleship.yml b/.github/workflows/Release-DeployBattleship.yml index ae683b87b..186a01e9e 100644 --- a/.github/workflows/Release-DeployBattleship.yml +++ b/.github/workflows/Release-DeployBattleship.yml @@ -74,6 +74,7 @@ jobs: VITE_CONTRACT_ADDRESS=${{ secrets.VITE_CONTRACT_ADDRESS_BATTLE }} VITE_SENTRY_DSN=${{ secrets.VITE_SENTRY_DSN_BATTLE }} VITE_GASLESS_BACKEND_ADDRESS=${{ secrets.VITE_GASLESS_BACKEND_ADDRESS }} + VITE_GTM_ID=${{ secrets.VITE_GTM_ID_BATTLESHIP }} deploy-to-k8s: needs: [prepair, build-and-push-image] diff --git a/.github/workflows/Release-galactic-express.yml b/.github/workflows/Release-galactic-express.yml index d9ee7d022..9aaedaaeb 100644 --- a/.github/workflows/Release-galactic-express.yml +++ b/.github/workflows/Release-galactic-express.yml @@ -73,6 +73,7 @@ jobs: REACT_APP_NODE_ADDRESS=${{ secrets.REACT_APP_NODE_ADDRESS }} REACT_APP_CONTRACT_ADDRESS=${{ secrets.REACT_APP_CONTRACT_ADDRESS_GALACTIC }} REACT_APP_SENTRY_DSN=${{ secrets.REACT_SENTRY_DSN_GALEX }} + REACT_APP_GTM_ID=${{ secrets.REACT_APP_GTM_ID_GALACTIC }} deploy-to-k8s: needs: [prepair, build-and-push-image] diff --git a/.github/workflows/Release-tamagochi-battle.yml b/.github/workflows/Release-tamagochi-battle.yml index 7ee1814c8..dea14095c 100644 --- a/.github/workflows/Release-tamagochi-battle.yml +++ b/.github/workflows/Release-tamagochi-battle.yml @@ -74,6 +74,7 @@ jobs: REACT_APP_CONTRACT_ADDRESS=${{ secrets.REACT_APP_CONTRACT_ADDRESS_TAMAGOCHI_BATTLE }} REACT_APP_SENTRY_DSN=${{ secrets.REACT_SENTRY_DSN_TAMAGOCHI_BATTLE }} REACT_APP_GASLESS_BACKEND_ADDRESS=${{ secrets.REACT_APP_GASLESS_BACKEND_ADDRESS }} + REACT_APP_GTM_ID=${{ secrets.REACT_APP_GTM_ID_TAMAGOCHI_BATTLE }} deploy-to-k8s: needs: [prepair, build-and-push-image] diff --git a/.github/workflows/Release-varaman.yml b/.github/workflows/Release-varaman.yml index 165bdc70f..d72656fb6 100644 --- a/.github/workflows/Release-varaman.yml +++ b/.github/workflows/Release-varaman.yml @@ -74,6 +74,7 @@ jobs: VITE_CONTRACT_ADDRESS=${{ secrets.VITE_CONTRACT_ADDRESS_VARA_MAN }} VITE_SENTRY_DSN=${{ secrets.REACT_SENTRY_DSN_VARA_MAN }} VITE_GASLESS_BACKEND_ADDRESS=${{ secrets.VITE_GASLESS_BACKEND_ADDRESS_VARA_MAN }} + VITE_GTM_ID=${{ secrets.VITE_GTM_ID_VARA_MAN }} deploy-to-k8s: needs: [prepair, build-and-push-image] diff --git a/frontend/apps/battleship/Dockerfile b/frontend/apps/battleship/Dockerfile index 3ae330185..21b6b4e4b 100644 --- a/frontend/apps/battleship/Dockerfile +++ b/frontend/apps/battleship/Dockerfile @@ -17,12 +17,14 @@ RUN apk add xsel ARG VITE_NODE_ADDRESS \ VITE_CONTRACT_ADDRESS \ VITE_SENTRY_DSN \ - VITE_GASLESS_BACKEND_ADDRESS + VITE_GASLESS_BACKEND_ADDRESS \ + VITE_GTM_ID ENV VITE_NODE_ADDRESS=${VITE_NODE_ADDRESS} \ VITE_CONTRACT_ADDRESS=${VITE_CONTRACT_ADDRESS} \ VITE_SENTRY_DSN=${VITE_SENTRY_DSN} \ - VITE_GASLESS_BACKEND_ADDRESS=${VITE_GASLESS_BACKEND_ADDRESS} + VITE_GASLESS_BACKEND_ADDRESS=${VITE_GASLESS_BACKEND_ADDRESS} \ + VITE_GTM_ID=${VITE_GTM_ID} WORKDIR /frontend/apps/battleship diff --git a/frontend/apps/galactic-express/Dockerfile b/frontend/apps/galactic-express/Dockerfile index 75220933f..ba74330b9 100644 --- a/frontend/apps/galactic-express/Dockerfile +++ b/frontend/apps/galactic-express/Dockerfile @@ -17,10 +17,12 @@ RUN apk add xsel ARG REACT_APP_NODE_ADDRESS \ REACT_APP_CONTRACT_ADDRESS \ - REACT_APP_SENTRY_DSN + REACT_APP_SENTRY_DSN \ + REACT_APP_GTM_ID ENV REACT_APP_NODE_ADDRESS=${REACT_APP_NODE_ADDRESS} \ REACT_APP_CONTRACT_ADDRESS=${REACT_APP_CONTRACT_ADDRESS} \ REACT_APP_SENTRY_DSN=${REACT_APP_SENTRY_DSN} \ + REACT_APP_GTM_ID=${REACT_APP_GTM_ID} \ DISABLE_ESLINT_PLUGIN=true WORKDIR /frontend/apps/galactic-express diff --git a/frontend/apps/tamagotchi-battle/Dockerfile b/frontend/apps/tamagotchi-battle/Dockerfile index 0e079498f..654c434ab 100644 --- a/frontend/apps/tamagotchi-battle/Dockerfile +++ b/frontend/apps/tamagotchi-battle/Dockerfile @@ -18,11 +18,13 @@ RUN apk add xsel ARG REACT_APP_CONTRACT_ADDRESS \ REACT_APP_NODE_ADDRESS \ REACT_APP_SENTRY_DSN \ - REACT_APP_GASLESS_BACKEND_ADDRESS + REACT_APP_GASLESS_BACKEND_ADDRESS \ + REACT_APP_GTM_ID ENV REACT_APP_NODE_ADDRESS=${REACT_APP_NODE_ADDRESS} \ REACT_APP_CONTRACT_ADDRESS=${REACT_APP_CONTRACT_ADDRESS} \ REACT_APP_GASLESS_BACKEND_ADDRESS=${REACT_APP_GASLESS_BACKEND_ADDRESS} \ REACT_APP_SENTRY_DSN=${REACT_APP_SENTRY_DSN} \ + REACT_APP_GTM_ID=${REACT_APP_GTM_ID} \ DISABLE_ESLINT_PLUGIN=true WORKDIR /frontend/apps/tamagotchi-battle diff --git a/frontend/apps/vara-man/Dockerfile b/frontend/apps/vara-man/Dockerfile index 500cabc9d..0955d7193 100644 --- a/frontend/apps/vara-man/Dockerfile +++ b/frontend/apps/vara-man/Dockerfile @@ -18,12 +18,14 @@ RUN apk add xsel ARG VITE_NODE_ADDRESS \ VITE_CONTRACT_ADDRESS \ VITE_SENTRY_DSN \ - VITE_GASLESS_BACKEND_ADDRESS + VITE_GASLESS_BACKEND_ADDRESS \ + VITE_GTM_ID ENV VITE_NODE_ADDRESS=${VITE_NODE_ADDRESS} \ VITE_CONTRACT_ADDRESS=${VITE_CONTRACT_ADDRESS} \ VITE_SENTRY_DSN=${VITE_SENTRY_DSN} \ VITE_GASLESS_BACKEND_ADDRESS=${VITE_GASLESS_BACKEND_ADDRESS} \ + VITE_GTM_ID=${VITE_GTM_ID} \ DISABLE_ESLINT_PLUGIN=true WORKDIR /frontend/apps/vara-man