Skip to content

Commit

Permalink
feat: updated paths
Browse files Browse the repository at this point in the history
  • Loading branch information
seeratawan01 committed Oct 16, 2024
1 parent 1bb7b37 commit 6973867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: usermaven-js-stage
DOCKERFILE_PATH: packages/javascript-sdk/docker/Dockerfile
DOCKERFILE_PATH: docker/Dockerfile

jobs:
dev_publish:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
context: packages/javascript-sdk
file: ${{ env.DOCKERFILE_PATH }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
Expand Down
4 changes: 2 additions & 2 deletions packages/javascript-sdk/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ RUN pnpm install && pnpm build
FROM nginx:latest
COPY --from=builder /usr/src/dist/lib.js /usr/share/nginx/html
RUN rm /etc/nginx/nginx.conf && rm /etc/nginx/conf.d/default.conf
COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY docker/default.conf /etc/nginx/conf.d/default.conf
COPY packages/javascript-sdk/docker/nginx.conf /etc/nginx/nginx.conf
COPY packages/javascript-sdk/docker/default.conf /etc/nginx/conf.d/default.conf

0 comments on commit 6973867

Please sign in to comment.