Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge #71

Merged
merged 10 commits into from
Mar 30, 2024
3 changes: 3 additions & 0 deletions .github/workflows/deploy-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
run: |
docker build -t in-house-queue-site \
--build-arg DATABASE_URL=${{ secrets.DATABASE_URL }} \
--build-arg NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} \
--build-arg DISCORD_CLIENT_ID=${{ secrets.DISCORD_CLIENT_ID }} \
--build-arg DISCORD_CLIENT_SECRET=${{ secrets.DISCORD_CLIENT_SECRET }} \
--build-arg UPSTASH_REDIS_REST_URL=${{ secrets.UPSTASH_REDIS_REST_URL }} \
--build-arg UPSTASH_REDIS_REST_TOKEN=${{ secrets.UPSTASH_REDIS_REST_TOKEN }} \
.

- name: Install doctl
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ FROM node:18-alpine AS base

# Define arguments
ARG DATABASE_URL
ARG NEXTAUTH_SECRET
ARG DISCORD_CLIENT_ID
ARG DISCORD_CLIENT_SECRET

ARG UPSTASH_REDIS_REST_URL
ARG UPSTASH_REDIS_REST_TOKEN

# Install dependencies only when needed
FROM base AS deps
Expand Down Expand Up @@ -46,8 +48,11 @@ WORKDIR /app

ENV NODE_ENV=production \
DATABASE_URL=$DATABASE_URL \
NEXTAUTH_SECRET=$NEXTAUTH_SECRET \
DISCORD_CLIENT_ID=$DISCORD_CLIENT_ID \
DISCORD_CLIENT_SECRET=$DISCORD_CLIENT_SECRET
UPSTASH_REDIS_REST_URL=$UPSTASH_REDIS_REST_URL \
UPSTASH_REDIS_REST_TOKEN=$UPSTASH_REDIS_REST_TOKEN

# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED 1
Expand Down