Skip to content

Commit

Permalink
Enable S3 Credentials for the Frontend app (#78)
Browse files Browse the repository at this point in the history
* [Dockerfile] Enable S3 variables for frontend

* [main.yml] Add S3 creds for frontend
  • Loading branch information
MuhammadIsmailShahzad authored Nov 7, 2023
1 parent a430ab2 commit d4d0522
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ 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 S3_ACCESS_KEY_ID=${{ secrets.DEV_S3_ACCESS_KEY_ID }} \
--build-arg S3_SECRET_KEY_ID=${{ secrets.DEV_S3_SECRET_KEY_ID }} \
--build-arg S3_BUCKET_NAME=${{ secrets.DEV_S3_BUCKET_NAME }} \
--build-arg S3_BUCKET_REGION=${{ secrets.DEV_S3_BUCKET_REGION }} \
deployment/frontend
docker push $REGISTRY/$FRONTEND_REPO:$IMAGE_TAG
- name: Set up Docker Containers
Expand Down
4 changes: 4 additions & 0 deletions deployment/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ WORKDIR /usr/src/app
ARG NEXTAUTH_SECRET
ARG NEXTAUTH_URL
ARG CKAN_URL
ARG S3_ACCESS_KEY_ID
ARG S3_SECRET_KEY_ID
ARG S3_BUCKET_NAME
ARG S3_BUCKET_REGION

COPY . .

Expand Down

0 comments on commit d4d0522

Please sign in to comment.