diff --git a/.github/workflows/deploy-live.yml b/.github/workflows/deploy-live.yml index 1dd7ffc..6848885 100644 --- a/.github/workflows/deploy-live.yml +++ b/.github/workflows/deploy-live.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 7966dd2..650657d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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