Skip to content

Commit fa9a67d

Browse files
committed
moving env vars out of deploy into build
1 parent 27677a9 commit fa9a67d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docker-compose.build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ services:
181181
leaderboard-frontend_tag:
182182
extends: leaderboard-frontend
183183
image: ${WS_DOCKER_REGISTRY}/workspaces-leaderboard-frontend:${CODE_VERSION}
184+
build:
185+
args:
186+
VITE_TDEI_API_URL: ${WS_TDEI_API_URL}
187+
VITE_TDEI_USER_API_URL: ${WS_TDEI_BACKEND_URL}
188+
VITE_API_URL: ${WS_API_URL}
189+
VITE_OSM_URL: ${WS_OSM_URL}
184190

185191
leaderboard-backend:
186192
image: ${WS_DOCKER_REGISTRY}/workspaces-leaderboard-backend:${ENV}

docker-compose.deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,6 @@ services:
202202
# leaderboard FE/backend
203203
leaderboard-frontend:
204204
image: ${WS_DOCKER_REGISTRY}/workspaces-leaderboard-frontend:${WS_DOCKER_TAG}
205-
environment:
206-
VITE_TDEI_API_URL: ${WS_TDEI_API_URL}
207-
VITE_TDEI_USER_API_URL: ${WS_TDEI_BACKEND_URL}
208-
VITE_API_URL: ${WS_API_URL}
209-
VITE_OSM_URL: ${WS_OSM_URL}
210205
labels:
211206
- traefik.enable=true
212207
- traefik.http.routers.leaderboard-frontend.rule=Host(`${LB_FRONTEND_HOST}`)

0 commit comments

Comments
 (0)