Skip to content

Commit

Permalink
build: Add missing NEXTAUTH_URL env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Oct 12, 2023
1 parent e8dc137 commit 371b69b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ WORKDIR /usr/src/app
# --build-arg KEYCLOAK_ID=<keycloak client id> \
# --build-arg KEYCLOAK_SECRET=<keycloak secret> \
# --build-arg KEYCLOAK_ISSUER=<keycloak issuer> \
# --build-arg NEXTAUTH_SECRET=<nextauth secret>
# --build-arg NEXTAUTH_SECRET=<nextauth secret> \
# --build-arg NEXTAUTH_URL=<nextauth url>
ARG COMMIT
ARG VECTOR_TILE_URL
ARG MAPTILER_STYLE_KEY
ARG KEYCLOAK_ID
ARG KEYCLOAK_SECRET
ARG KEYCLOAK_ISSUER
ARG NEXTAUTH_SECRET
ARG NEXTAUTH_URL

# Build app
COPY package.json yarn.lock ./
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,5 +220,3 @@ To configure Keycloak:
- NEXTAUTH_SECRET: Any string, can be "secret" locally
[keycloak-admin]: http://localhost:8080/admin/master/console/#/
Remember to add NEXTAUTH_SECRET variable to your .env file!
1 change: 1 addition & 0 deletions scripts/docker-build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ docker build \
--build-arg KEYCLOAK_SECRET=$KEYCLOAK_SECRET \
--build-arg KEYCLOAK_ISSUER=$KEYCLOAK_ISSUER \
--build-arg NEXTAUTH_SECRET=$NEXTAUTH_SECRET \
--build-arg NEXTAUTH_URL=$NEXTAUTH_URL \
$(echo $DOCKER_IMAGE_TAGS | tr ' ' '\n' | xargs -n 1 -I {} echo "-t {}" ) .

# Push all the tags
Expand Down

0 comments on commit 371b69b

Please sign in to comment.