Skip to content

Commit

Permalink
fix: bug in DO docker image push (#71)
Browse files Browse the repository at this point in the history
* feat: push to digital ocean registry

* feat: add required env vars to make build succeed

* feat: add required env vars to make build succeed

* feat: add required env vars to make build succeed

* feat: add required env vars to make build succeed

* feat: add required env vars to make build succeed
  • Loading branch information
HenrySpartGlobal authored Mar 30, 2024
1 parent 555198d commit e1993e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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

0 comments on commit e1993e0

Please sign in to comment.