From 9e9cbffc7b4d054992705a7660fac1f2923727d2 Mon Sep 17 00:00:00 2001 From: Seerat Awan Date: Wed, 16 Oct 2024 14:31:50 +0500 Subject: [PATCH] feat: updated paths --- .github/workflows/cd-develop.yml | 9 ++++++++- .github/workflows/master-release.yml | 4 ++-- packages/javascript-sdk/docker/Dockerfile | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd-develop.yml b/.github/workflows/cd-develop.yml index 36b8a99..fb74bfb 100644 --- a/.github/workflows/cd-develop.yml +++ b/.github/workflows/cd-develop.yml @@ -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: @@ -76,6 +76,13 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.PAT }} + - name: List directory contents + run: | + echo "Root directory:" + ls -R + echo "packages/javascript-sdk directory:" + ls -R packages/javascript-sdk + - name: Extract metadata for Docker id: meta uses: docker/metadata-action@v4 diff --git a/.github/workflows/master-release.yml b/.github/workflows/master-release.yml index a6c4992..2d04c66 100644 --- a/.github/workflows/master-release.yml +++ b/.github/workflows/master-release.yml @@ -4,7 +4,7 @@ on: pull_request: types: [ closed ] branches: - - master + - master # on: # push: # branches: @@ -23,4 +23,4 @@ jobs: bump_version_scheme: patch tag_prefix: "" outputs: - version: ${{ steps.release.outputs.version }} \ No newline at end of file + version: ${{ steps.release.outputs.version }} diff --git a/packages/javascript-sdk/docker/Dockerfile b/packages/javascript-sdk/docker/Dockerfile index 9ae16e9..e60e227 100644 --- a/packages/javascript-sdk/docker/Dockerfile +++ b/packages/javascript-sdk/docker/Dockerfile @@ -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 packages/javascript-sdk/docker/nginx.conf /etc/nginx/nginx.conf -COPY packages/javascript-sdk/docker/default.conf /etc/nginx/conf.d/default.conf +COPY docker/nginx.conf /etc/nginx/nginx.conf +COPY docker/default.conf /etc/nginx/conf.d/default.conf