ci: change deploy logic for vite

This commit is contained in:
skeris 2024-01-24 19:25:23 +03:00
parent 486f1df3cb
commit 797dd4cdbf
2 changed files with 5 additions and 1 deletions

@ -11,6 +11,8 @@ stages:
- deploy
clear-old-images:
tags:
- frontbuild
extends: .clean_template
variables:
STAGING_BRANCH: "main"
@ -24,6 +26,8 @@ clear-old-images:
script:
- docker system prune -af
build-app:
tags:
- frontbuild
extends: .build_template
variables:
DOCKER_BUILD_PATH: "./Dockerfile"

@ -10,5 +10,5 @@ RUN yarn build
FROM nginx:latest as result
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/app/build/ /usr/share/nginx/html
COPY --from=build /usr/app/dist/ /usr/share/nginx/html
COPY hub.conf /etc/nginx/conf.d/default.conf