From 95f216710298e2c5f08bf2632288b0b7d97b88ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Thu, 1 Aug 2024 10:10:11 +0200 Subject: [PATCH] chore: infrastructure adjustments of metadata-validation service usage --- govtool/frontend/Dockerfile | 2 ++ scripts/govtool/frontend.mk | 1 + 2 files changed, 3 insertions(+) diff --git a/govtool/frontend/Dockerfile b/govtool/frontend/Dockerfile index 0980b978b..cd86a854c 100644 --- a/govtool/frontend/Dockerfile +++ b/govtool/frontend/Dockerfile @@ -2,6 +2,7 @@ FROM node:18-alpine as builder ARG VITE_APP_ENV='beta' ARG VITE_BASE_URL +ARG METADATA_API_URL ARG VITE_GTM_ID ARG VITE_NETWORK_FLAG=0 ARG VITE_SENTRY_DSN @@ -14,6 +15,7 @@ ARG VITE_PDF_API_URL RUN \ : "${VITE_APP_ENV:?Build argument VITE_APP_ENV is not set}" && \ : "${VITE_BASE_URL:?Build argument VITE_BASE_URL is not set}" && \ + : "${METADATA_API_URL:?Build argument METADATA_API_URL is not set}" && \ : "${VITE_GTM_ID:?Build argument VITE_GTM_ID is not set}" && \ : "${VITE_NETWORK_FLAG:?Build argument VITE_NETWORK_FLAG is not set}" && \ : "${VITE_SENTRY_DSN:?Build argument VITE_SENTRY_DSN is not set}" && \ diff --git a/scripts/govtool/frontend.mk b/scripts/govtool/frontend.mk index 3881a2bcd..64f5516e8 100644 --- a/scripts/govtool/frontend.mk +++ b/scripts/govtool/frontend.mk @@ -17,6 +17,7 @@ build-frontend: docker-login $(docker) build --tag "$(repo_url)/frontend:$(frontend_image_tag)" \ --build-arg VITE_APP_ENV="$(env)" \ --build-arg VITE_BASE_URL="https://$(domain)/api" \ + --build-arg VITE_METADATA_API_URL="https://$(domain)/metadata-validation" \ --build-arg VITE_GTM_ID="$${GTM_ID}" \ --build-arg VITE_NETWORK_FLAG="$$NETWORK_FLAG" \ --build-arg VITE_SENTRY_DSN="$${SENTRY_DSN}" \