Add env variables to secrets
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 22s
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 22s
This commit is contained in:
parent
5b3fcc1eaf
commit
5620084a35
1
.github/workflows/cicd.yml
vendored
1
.github/workflows/cicd.yml
vendored
@ -32,6 +32,7 @@ jobs:
|
||||
push: true
|
||||
build-args: |
|
||||
SSH_PRIVATE_KEY=${{ secrets.SSH_PRIVATE_KEY }}
|
||||
ENV_VARS=${{ secrets.ENV_VARS }}
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}
|
@ -4,7 +4,9 @@ FROM node:19-alpine AS deps
|
||||
WORKDIR leCoffre-front
|
||||
|
||||
COPY package.json ./
|
||||
COPY .env ./
|
||||
|
||||
ARG ENV_VARS
|
||||
RUN echo "${ENV_VARS}" > .env
|
||||
|
||||
RUN apk update && apk add openssh-client git
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user