main #7
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -34,6 +34,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
build-args: |
|
||||||
|
ENV_VARS=${{ secrets.ENV_VARS }}
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}
|
@ -4,6 +4,11 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Installation des dépendances
|
# Installation des dépendances
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
|
ARG ENV_VARS
|
||||||
|
RUN echo "${ENV_VARS}" > .env
|
||||||
|
RUN cat .env
|
||||||
|
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|
||||||
# Copie des fichiers source
|
# Copie des fichiers source
|
||||||
|
Loading…
x
Reference in New Issue
Block a user