ci: change deploy logic for vite
This commit is contained in:
parent
486f1df3cb
commit
797dd4cdbf
@ -11,6 +11,8 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
clear-old-images:
|
clear-old-images:
|
||||||
|
tags:
|
||||||
|
- frontbuild
|
||||||
extends: .clean_template
|
extends: .clean_template
|
||||||
variables:
|
variables:
|
||||||
STAGING_BRANCH: "main"
|
STAGING_BRANCH: "main"
|
||||||
@ -24,6 +26,8 @@ clear-old-images:
|
|||||||
script:
|
script:
|
||||||
- docker system prune -af
|
- docker system prune -af
|
||||||
build-app:
|
build-app:
|
||||||
|
tags:
|
||||||
|
- frontbuild
|
||||||
extends: .build_template
|
extends: .build_template
|
||||||
variables:
|
variables:
|
||||||
DOCKER_BUILD_PATH: "./Dockerfile"
|
DOCKER_BUILD_PATH: "./Dockerfile"
|
||||||
|
@ -10,5 +10,5 @@ RUN yarn build
|
|||||||
|
|
||||||
FROM nginx:latest as result
|
FROM nginx:latest as result
|
||||||
WORKDIR /usr/share/nginx/html
|
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
|
COPY hub.conf /etc/nginx/conf.d/default.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user