Add env vars to the cicd
This commit is contained in:
parent
698256cd24
commit
3aa531948f
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -34,6 +34,9 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
ssh: default
|
||||
build-args: |
|
||||
ENV_VARS=${{ secrets.ENV_VARS }}
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}
|
@ -4,6 +4,10 @@ WORKDIR /app
|
||||
|
||||
# Installation des dépendances
|
||||
COPY package*.json ./
|
||||
|
||||
ARG ENV_VARS
|
||||
RUN echo "${ENV_VARS}" > .env
|
||||
|
||||
RUN npm install --production
|
||||
|
||||
# Copie des fichiers source
|
||||
|
Loading…
x
Reference in New Issue
Block a user