Bring env variables from gcloud directly
This commit is contained in:
parent
89b419ed54
commit
d71c99ab5d
2 changed files with 2 additions and 8 deletions
|
|
@ -75,10 +75,6 @@ RUN pnpm install --frozen-lockfile --prod --filter @xtablo/api...
|
|||
# Set working directory to api app
|
||||
WORKDIR /app/apps/api
|
||||
|
||||
# Copy .env files from build stage if they exist
|
||||
RUN --mount=type=bind,from=build,source=/app/apps/api,target=/mnt/api \
|
||||
cp /mnt/api/.env* . 2>/dev/null || true
|
||||
|
||||
# Change ownership to nodejs user
|
||||
RUN chown -R nodejs:nodejs /app
|
||||
|
||||
|
|
@ -113,10 +109,6 @@ RUN pnpm install --frozen-lockfile --prod --filter @xtablo/api...
|
|||
# Set working directory to api app
|
||||
WORKDIR /app/apps/api
|
||||
|
||||
# Copy .env files from build stage if they exist
|
||||
RUN --mount=type=bind,from=build,source=/app/apps/api,target=/mnt/api \
|
||||
cp /mnt/api/.env* . 2>/dev/null || true
|
||||
|
||||
# Change ownership to nodejs user
|
||||
RUN chown -R nodejs:nodejs /app
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ steps:
|
|||
- 'europe-west1-docker.pkg.dev/$_AR_PROJECT_ID/$_AR_REPOSITORY/xtablo-source/$_SERVICE_NAME:$COMMIT_SHA'
|
||||
- '--region'
|
||||
- 'europe-west1'
|
||||
- '--set-env-vars'
|
||||
- 'NODE_ENV=$_NODE_ENV,PORT=8080,SUPABASE_URL=$_SUPABASE_URL,STREAM_CHAT_API_KEY=$_STREAM_CHAT_API_KEY,EMAIL_USER=$_EMAIL_USER,EMAIL_CLIENT_ID=$_EMAIL_CLIENT_ID,R2_ACCOUNT_ID=$_R2_ACCOUNT_ID,CORS_ORIGIN=$_CORS_ORIGIN,XTABLO_URL=$_XTABLO_URL,LOG_LEVEL=$_LOG_LEVEL'
|
||||
images:
|
||||
- 'europe-west1-docker.pkg.dev/$_AR_PROJECT_ID/$_AR_REPOSITORY/xtablo-source/$_SERVICE_NAME:$COMMIT_SHA'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue