Update .gitlab-ci.yml

This commit is contained in:
FECR-IBD 2022-03-09 06:10:26 +00:00
parent 85b5180d7f
commit 3da2aa775f
1 changed files with 5 additions and 5 deletions

View File

@ -4,11 +4,11 @@ stages:
job: job:
stage: deploy stage: deploy
script: script:
- docker stop tfse_app_api - docker stop tfse_app_api_v0.2
- docker rm tfse_app_api - docker rm tfse_app_api_v0.2
- docker build -t tfse_app_api . - docker build -t tfse_app_api_v0.2 .
- 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 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: only:
- master - master
tags: tags:
- tfse_app_api - tfse_app_api_v0.2