trying to build env file in the workflow

This commit is contained in:
ChrQR 2024-05-18 00:42:05 +02:00
parent 18ac1b46ae
commit cdb1273ab8
2 changed files with 9 additions and 4 deletions

View File

@ -15,6 +15,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- name: Make envfile
uses: SpicyPizza/create-envfile@v2.0
with:
envkey_DEBUG: false
PLACES_API: ${{ secrets.PLACES_API }}
directory: .
file_name: .env.production
fail_on_empty: false
sort_keys: false
- name: Set up Docker Buildx 🚀
uses: docker/setup-buildx-action@v3
with:

View File

@ -31,10 +31,6 @@ RUN \
FROM base AS runner
WORKDIR /app
# Mount environment variables
RUN --mount=type=secret,id=places_api \
cat /run/secrets/places_api
ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs