attempt 2

This commit is contained in:
Chris Kruining 2024-11-18 11:42:14 +01:00
parent d85bcae11e
commit 8f1dfad88a
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 7 additions and 7 deletions

View file

@ -6,12 +6,12 @@ on:
- infrastructure/** - infrastructure/**
branches: branches:
- main - main
pull_request: # pull_request:
paths-ignore: # paths-ignore:
- infrastructure/** # - infrastructure/**
types: [opened, synchronize, reopened, closed] # types: [opened, synchronize, reopened, closed]
branches: # branches:
- main # - main
env: env:
IMAGE_NAME: calque-app IMAGE_NAME: calque-app

View file

@ -9,7 +9,7 @@ RUN cd /temp/dev && bun install --frozen-lockfile
RUN mkdir -p /temp/prod RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/ COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production RUN cd /temp/prod && bun install --frozen-lockfile --production
RUN echo "SESSION_SECRET=$(openssl rand -base64 15)" > .env RUN echo "SESSION_SECRET=$(head -c 12 /dev/random | base64)" > .env
FROM base AS prerelease FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules COPY --from=install /temp/dev/node_modules node_modules