chore(build): Creating separate build for cicd

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-06-24 14:51:08 +02:00
parent 260d758592
commit f17fd33120
2 changed files with 8 additions and 0 deletions

View file

@ -48,6 +48,7 @@ jobs:
run: |
cd frontend
docker run --rm -v /etc/passwd:/etc/passwd -u `id -u`:`id -g` -v $(pwd):/home/${USER} -w /home/${USER} --name node_build node:14-stretch-slim /bin/bash -c "yarn && yarn build"
docker build --target=cicd -t $DOCKER_REPO/frontend:${IMAGE_TAG} .
docker push $DOCKER_REPO/frontend:${IMAGE_TAG}
- name: Creating old image input
run: |

View file

@ -9,3 +9,10 @@ LABEL maintainer=Rajesh<rajesh@openreplay.com>
COPY --from=builder /work/public /var/www/openreplay
COPY nginx.conf /etc/nginx/conf.d/default.conf
FROM nginx:alpine as cicd
LABEL maintainer=Rajesh<rajesh@openreplay.com>
COPY public /var/www/openreplay
COPY nginx.conf /etc/nginx/conf.d/default.conf