Skip to content

Commit c023aaa

Browse files
committed
ci(dash/src): 💚 Add DATABASE_URL to Build contect and log content in build
1 parent 376b6f8 commit c023aaa

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/dashboard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
echo NEXT_PUBLIC_API_URL="https://api.buildtheearth.net/api/v1" >> apps/dashboard/.env
4343
echo NEXT_PUBLIC_SMYLER_API_URL="https://smybteapi.buildtheearth.net" >> apps/dashboard/.env
4444
echo NEXT_PUBLIC_FRONTEND_URL="https://buildtheearth.net" >> apps/dashboard/.env
45+
echo DATABASE_URL="${{ secrets.DATABASE_URL }}" >> apps/dashboard/.env
4546
- name: Build the Docker image
4647
run: docker build . --file apps/dashboard/Dockerfile --tag ghcr.io/buildtheearth/dashboard-website:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/dashboard-website:latest
4748
- name: Docker push tag

apps/dashboard/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ COPY --from=builder /app/out/full/ .
2727
COPY --from=builder /app/apps/dashboard/.env ./apps/dashboard/.env
2828

2929
ENV NEXT_TELEMETRY_DISABLED 1
30-
30+
RUN echo "Using env file: \n $(cat apps/dashboard/.env)"
3131
RUN yarn turbo run build --filter=dashboard...
3232

3333
FROM base AS runner

0 commit comments

Comments
 (0)