trying to build env file in the workflow
This commit is contained in:
parent
18ac1b46ae
commit
cdb1273ab8
@ -15,6 +15,15 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
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 🚀
|
- name: Set up Docker Buildx 🚀
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -31,10 +31,6 @@ RUN \
|
|||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Mount environment variables
|
|
||||||
RUN --mount=type=secret,id=places_api \
|
|
||||||
cat /run/secrets/places_api
|
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
RUN addgroup --system --gid 1001 nodejs
|
RUN addgroup --system --gid 1001 nodejs
|
||||||
|
Loading…
Reference in New Issue
Block a user