From 5439880126ede9a72e93abe4e433aeedd1c811ed Mon Sep 17 00:00:00 2001 From: alexeh Date: Wed, 17 Apr 2024 08:17:09 +0300 Subject: [PATCH] hack for test branch to enable EUDR mode in test environment --- .github/workflows/publish-docker-images.yml | 1 + client/Dockerfile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/publish-docker-images.yml b/.github/workflows/publish-docker-images.yml index 8af3e1f1e..1b1f3a9fa 100644 --- a/.github/workflows/publish-docker-images.yml +++ b/.github/workflows/publish-docker-images.yml @@ -171,6 +171,7 @@ jobs: IMAGE_TAG: ${{ steps.extract_branch.outputs.branch }} run: | docker build \ + --build-arg NEXT_PUBLIC_ENABLE_EUDR=true \ --build-arg NEXTAUTH_URL=${{ secrets[format('NEXTAUTH_URL_{0}', steps.extract_branch.outputs.branch-upper )] }} \ --build-arg NEXTAUTH_SECRET=${{ secrets[format('NEXTAUTH_SECRET_{0}', steps.extract_branch.outputs.branch-upper )] }} \ --build-arg NEXT_PUBLIC_MAPBOX_API_TOKEN=${{ secrets.NEXT_PUBLIC_MAPBOX_API_TOKEN }} \ diff --git a/client/Dockerfile b/client/Dockerfile index f3eeb4501..ec690949c 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -7,6 +7,8 @@ ARG NEXTAUTH_SECRET ARG NEXT_PUBLIC_API_URL ARG CYPRESS_USERNAME ARG CYPRESS_PASSWORD +## TODO: Hack to enable EUDR module in test environment +ARG NEXT_PUBLIC_ENABLE_EUDR ENV NAME landgriffon-client ENV USER $NAME @@ -18,6 +20,7 @@ ENV NEXT_TELEMETRY_DISABLED 1 ENV CYPRESS_USERNAME $CYPRESS_USERNAME ENV CYPRESS_PASSWORD $CYPRESS_PASSWORD ENV CYPRESS_API_URL $NEXT_PUBLIC_API_URL +ENV NEXT_PUBLIC_ENABLE_EUDR $NEXT_PUBLIC_ENABLE_EUDR RUN groupadd -g $GID $USER && adduser --uid $UID --gid $GID $USER