Skip to content

Commit

Permalink
Merge pull request #87 from wri/fix/auth-wrong-env-var
Browse files Browse the repository at this point in the history
Auth - Wrong env var name
  • Loading branch information
demenech authored Nov 9, 2023
2 parents fd0db49 + 9baab14 commit ccfe62c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
--build-arg NEXTAUTH_SECRET=${{ secrets.DEV_FRONTEND_NEXTAUTH_SECRET }} \
--build-arg NEXTAUTH_URL=${{ secrets.DEV_FRONTEND_NEXTAUTH_URL }} \
--build-arg CKAN_URL=${{ secrets.DEV_FRONTEND_CKAN_URL }} \
--build-arg SYS_ADMIN_API_KEY=${{ secrets.SYS_ADMIN_API_KEY }} \
deployment/frontend
docker push $REGISTRY/$FRONTEND_REPO:$IMAGE_TAG
- name: Set up Docker Containers
Expand Down
4 changes: 2 additions & 2 deletions ckan-backend-dev/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
- S3_SECRET_KEY_ID=${MINIO_ROOT_PASSWORD}
- S3_BUCKET_NAME=ckan
- S3_BUCKET_REGION=us-east-1
- SYS_ADMIN_API_KEY=${CKAN__DATAPUSHER__API_TOKEN}
- SYS_ADMIN_API_KEY=${SYS_ADMIN_API_KEY}
environment:
- NEXTAUTH_SECRET=secret
- NEXTAUTH_URL=http://localhost:3000
Expand All @@ -55,7 +55,7 @@ services:
- S3_SECRET_KEY_ID=${MINIO_ROOT_PASSWORD}
- S3_BUCKET_NAME=ckan
- S3_BUCKET_REGION=us-east-1
- SYS_ADMIN_API_KEY=${CKAN__DATAPUSHER__API_TOKEN}
- SYS_ADMIN_API_KEY=${SYS_ADMIN_API_KEY}
ports:
- "0.0.0.0:3000:3000"
healthcheck:
Expand Down
2 changes: 1 addition & 1 deletion ckan-backend-dev/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
- S3_SECRET_KEY_ID=${MINIO_ROOT_PASSWORD}
- S3_BUCKET_NAME=ckan
- S3_BUCKET_REGION=us-east-1
- SYS_ADMIN_API_KEY=${CKAN__DATAPUSHER__API_TOKEN}
- SYS_ADMIN_API_KEY=${SYS_ADMIN_API_KEY}
ports:
- "0.0.0.0:3000:3000"
healthcheck:
Expand Down
1 change: 1 addition & 0 deletions deployment/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ WORKDIR /usr/src/app
ARG NEXTAUTH_SECRET
ARG NEXTAUTH_URL
ARG CKAN_URL
ARG SYS_ADMIN_API_KEY

COPY . .

Expand Down
1 change: 0 additions & 1 deletion e2e-tests/cypress/e2e/auth.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ describe("Login modal", () => {

cy.get("#request-reset-button").click();

// cy.contains("Password reset link sent to email address");
});
});

Expand Down

0 comments on commit ccfe62c

Please sign in to comment.