Update .gitlab-ci.yml, Dockerfile

This commit is contained in:
MohammadTaha Basiri 2022-02-05 12:53:18 +00:00
parent 87ab66ff69
commit 2c858ee87e
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
cache:
paths:
- build/web
stages: stages:
- build - build
- push - push
@ -34,4 +37,4 @@ deploy:
- fandogh login --username=$FAN_USR --password=$FAN_PASS - fandogh login --username=$FAN_USR --password=$FAN_PASS
- fandogh service apply -f ./deployment/config.yaml -p SEC_NAME - fandogh service apply -f ./deployment/config.yaml -p SEC_NAME
only: only:
- test - test

View File

@ -1,3 +1,3 @@
FROM nginx:latest FROM nginx:latest
COPY /build/web /usr/share/nginx/html/ COPY ./build/web /usr/share/nginx/html/
ENTRYPOINT ["nginx", "-g", "daemon off;"] ENTRYPOINT ["nginx", "-g", "daemon off;"]