diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index e463c5d3e..17ab38206 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -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: | diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 28d66bd42..84e9d1c08 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -9,3 +9,10 @@ LABEL maintainer=Rajesh 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 + +COPY public /var/www/openreplay +COPY nginx.conf /etc/nginx/conf.d/default.conf +