Skip to content

Commit

Permalink
Merge pull request #17 from Mexidense/feat/add-google-cloud-ci-cd
Browse files Browse the repository at this point in the history
chore: add OPENAI API KEY env var
  • Loading branch information
Mexidense authored Dec 12, 2023
2 parents 5ad6db7 + 25c8ef7 commit 7c77ba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ jobs:
--platform managed \
--region $CLOUD_RUN_REGION \
--allow-unauthenticated \
--quiet
--quiet \
--set-env-vars OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ARG PUBLIC_APP_URL

FROM node:18.17.0-alpine
RUN mkdir /app

Expand All @@ -8,6 +6,10 @@ WORKDIR /app
COPY . .

RUN npm ci --omit=dev

ARG OPENAI_API_KEY
ENV OPENAI_API_KEY ${OPENAI_API_KEY}

RUN npm run build

CMD ["npm", "start"]

0 comments on commit 7c77ba8

Please sign in to comment.