This commit is contained in:
P3ngSaM 2022-03-10 15:57:06 +08:00
commit 0add3df53c
1 changed files with 5 additions and 5 deletions

View File

@ -4,11 +4,11 @@ stages:
job:
stage: deploy
script:
- docker stop tfse_app_api
- docker rm tfse_app_api
- docker build -t tfse_app_api .
- docker run -d -p 51010:51010 --name tfse_app_api -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro tfse_app_api
- docker stop tfse_app_api_v0.2
- docker rm tfse_app_api_v0.2
- docker build -t tfse_app_api_v0.2 .
- docker run -d -p 51010:51010 --name tfse_app_api_v0.2 -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro tfse_app_api_v0.2
only:
- master
tags:
- tfse_app_api
- tfse_app_api_v0.2