Skip to content

Commit

Permalink
chore: more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Dec 2, 2023
1 parent c6d31d5 commit dcb0176
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/docker-build-publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Set up Docker Buildx

Check warning on line 21 in .github/workflows/docker-build-publish-dev.yml

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Buildx)
uses: docker/setup-buildx-action@v2

Check warning on line 22 in .github/workflows/docker-build-publish-dev.yml

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (buildx)

- 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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-build-publish-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Set up Docker Buildx

Check warning on line 21 in .github/workflows/docker-build-publish-prod.yml

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Buildx)
uses: docker/setup-buildx-action@v2

Check warning on line 22 in .github/workflows/docker-build-publish-prod.yml

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (buildx)

- 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:
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]"
LABEL org.opencontainers.image.source https://github.com/ever-co/ever-teams

Expand Down Expand Up @@ -78,6 +81,8 @@ COPY . .

ENV NODE_ENV=production

RUN echo $NEXT_PUBLIC_GAUZY_API_SERVER_URL

# Build application
RUN yarn run build:web

Expand Down
1 change: 0 additions & 1 deletion apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit dcb0176

Please sign in to comment.