Skip to content

Commit

Permalink
hack for test branch to enable EUDR mode in test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Apr 18, 2024
1 parent 7453d3a commit 5439880
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} \
Expand Down
3 changes: 3 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 5439880

Please sign in to comment.