Skip to content

Commit

Permalink
move to release phase instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tevko committed Jan 28, 2025
1 parent 422c5b6 commit f367417
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 7 additions & 1 deletion heroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ build:
worker: math/Dockerfile
# build and release static assets (js, index.html, etc)
#release: Dockerfile

release:
command:
- echo "provisioning gcloud" # You can add other release commands if needed
- printf "%s" "$JIGSAW_SERVICE_ACCT" > /app/llm-service-account.json
- gcloud auth activate-service-account --key-file=/app/llm-service-account.json
config:
JIGSAW_SERVICE_ACCT: $JIGSAW_SERVICE_ACCT
#release:
#image: release
#command:
Expand Down
11 changes: 5 additions & 6 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ FROM base as prod
# Set default NODE_ENV to production unless overridden at build time with --build-arg NODE_ENV=development
ENV NODE_ENV ${NODE_ENV:-production}

ARG JIGSAW_SERVICE_ACCT
RUN echo ${JIGSAW_SERVICE_ACCT} > /app/llm-service-account.json
# ARG JIGSAW_SERVICE_ACCT
# ENV JIGSAW_SERVICE_ACCT=${JIGSAW_SERVICE_ACCT}
# RUN echo ${JIGSAW_SERVICE_ACCT} > /app/llm-service-account.json

ENV GOOGLE_APPLICATION_CREDENTIALS=/app/llm-service-account.json
# ENV GOOGLE_APPLICATION_CREDENTIALS=/app/llm-service-account.json

RUN cat /app/llm-service-account.json
RUN echo ${JIGSAW_SERVICE_ACCT}
# Authenticate with the service account
RUN gcloud auth activate-service-account --key-file=/app/llm-service-account.json
# RUN gcloud auth activate-service-account --key-file=/app/llm-service-account.json

RUN npm ci --production=false

Expand Down

0 comments on commit f367417

Please sign in to comment.