Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
renzholy committed May 22, 2021
1 parent d6e6c80 commit 462bb9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
FROM ghcr.io/renzholy/blogit:latest
ENV NODE_ENV=production
ENV GHP=$INPUT_token
ENV NEXT_PUBLIC_OWNER=$INPUT_owner
ENV NEXT_PUBLIC_REPO=$INPUT_repo
ENV NEXT_PUBLIC_BRANCH=$INPUT_branch
ENV NEXT_PUBLIC_INDEX=$INPUT_index
ENV NEXT_PUBLIC_LINKS=$INPUT_links
WORKDIR /app
8 changes: 8 additions & 0 deletions Dockerfile.self
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@ WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules

ENV NODE_ENV=production
ENV GHP=$INPUT_token
ENV NEXT_PUBLIC_OWNER=$INPUT_owner
ENV NEXT_PUBLIC_REPO=$INPUT_repo
ENV NEXT_PUBLIC_BRANCH=$INPUT_branch
ENV NEXT_PUBLIC_INDEX=$INPUT_index
ENV NEXT_PUBLIC_LINKS=$INPUT_links

ONBUILD RUN yarn build
ONBUILD RUN yarn export

0 comments on commit 462bb9c

Please sign in to comment.