From dcb01761dba7e7ee35c0b25138a86bf0c596b638 Mon Sep 17 00:00:00 2001 From: Ruslan Konviser Date: Sat, 2 Dec 2023 18:57:30 +0100 Subject: [PATCH] chore: more logging --- .github/workflows/docker-build-publish-dev.yml | 3 +++ .github/workflows/docker-build-publish-prod.yml | 3 +++ Dockerfile | 5 +++++ apps/web/next.config.js | 1 - 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-publish-dev.yml b/.github/workflows/docker-build-publish-dev.yml index 4bd6f6a83..28d1145b7 100644 --- a/.github/workflows/docker-build-publish-dev.yml +++ b/.github/workflows/docker-build-publish-dev.yml @@ -21,6 +21,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Output NEXT_PUBLIC_GAUZY_API_SERVER_URL + run: echo "NEXT_PUBLIC_GAUZY_API_SERVER_URL=${{ secrets.NEXT_PUBLIC_GAUZY_API_SERVER_URL }}" + - name: Build and push uses: docker/build-push-action@v4 with: diff --git a/.github/workflows/docker-build-publish-prod.yml b/.github/workflows/docker-build-publish-prod.yml index a47b6335b..efc2d0b75 100644 --- a/.github/workflows/docker-build-publish-prod.yml +++ b/.github/workflows/docker-build-publish-prod.yml @@ -21,6 +21,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Output NEXT_PUBLIC_GAUZY_API_SERVER_URL + run: echo "NEXT_PUBLIC_GAUZY_API_SERVER_URL=${{ secrets.NEXT_PUBLIC_GAUZY_API_SERVER_URL }}" + - name: Build and push uses: docker/build-push-action@v4 with: diff --git a/Dockerfile b/Dockerfile index d1a5a52b0..8712f6f9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,9 @@ ARG NEXT_PUBLIC_CHATWOOT_API_KEY FROM node:${NODE_VERSION}-slim as base +# Output the environment variable value +RUN echo "NEXT_PUBLIC_GAUZY_API_SERVER_URL=${NEXT_PUBLIC_GAUZY_API_SERVER_URL}" + LABEL maintainer="ever@ever.co" LABEL org.opencontainers.image.source https://github.com/ever-co/ever-teams @@ -78,6 +81,8 @@ COPY . . ENV NODE_ENV=production +RUN echo $NEXT_PUBLIC_GAUZY_API_SERVER_URL + # Build application RUN yarn run build:web diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 9fcde0150..eabcfd6e9 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-var-requires */ const path = require('path'); -console.log(`GAUZY_API_SERVER_URL: ${process.env.GAUZY_API_SERVER_URL}`); console.log(`NEXT_PUBLIC_GAUZY_API_SERVER_URL: ${process.env.NEXT_PUBLIC_GAUZY_API_SERVER_URL}`); // eslint-disable-next-line @typescript-eslint/no-var-requires