chore(build): Creating separate build for cicd
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
260d758592
commit
f17fd33120
2 changed files with 8 additions and 0 deletions
1
.github/workflows/frontend.yaml
vendored
1
.github/workflows/frontend.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue