강동현
Builds for 1 pipeline failed in 1 minute 12 seconds

도커파일, gitlab-ci 수정

......@@ -13,20 +13,7 @@ Test Server:
- yarn install
- yarn test
Build Server:
Build:
stage: build
script:
- cd common
- yarn install
- cd ../server
- yarn install
- yarn build
Build Web:
stage: build
script:
- cd common
- yarn install
- cd ../web
- npm install
- npm build
- HOST=2020105578.oss2021.tk SSL_CERT=/etc/letsencrypt/live/2020105578.oss2021.tk/cert.pem SSL_KEY=/etc/letsencrypt/live/2020105578.oss2021.tk/privkey.pem SSL_CA=/etc/letsencrypt/live/2020105578.oss2021.tk/fullchain.pem docker-compose build --no-cache
......
......@@ -11,19 +11,19 @@ services:
volumes:
- /etc/letsencrypt:/etc/letsencrypt
environment:
- SSL_CERT={SSL_CERT}
- SSL_KEY={SSL_KEY}
- SSL_CA={SSL_CA}
- SSL_CERT=${SSL_CERT}
- SSL_KEY=${SSL_KEY}
- SSL_CA=${SSL_CA}
web:
build:
context: .
dockerfile: ./web/Dockerfile
args:
- HOST={HOST}
- SSL_CERT={SSL_CERT}
- SSL_KEY={SSL_KEY}
- SSL_CA={SSL_CA}
- HOST=${HOST}
- SSL_CERT=${SSL_CERT}
- SSL_KEY=${SSL_KEY}
- SSL_CA=${SSL_CA}
restart: unless-stopped
ports:
- "443:443"
......