qrcode_be/.gitlab-ci.yml
2021-01-04 00:24:01 +08:00

28 lines
432 B
YAML

stages:
- build
- clear
- deploy
build:
stage: build
tags:
- dockerbase
script:
- ls -a
- docker build -t lacus/qrcode .
clear:
stage: clear
tags:
- dockerbase
script:
- docker stop qrcode
- docker rm qrcode
allow_failure: true
deploy:
stage: deploy
tags:
- dockerbase
script:
- docker run -t -d --name qrcode -v /root/yingbo/qrcode/data:/app/data -p 5002:80 lacus/qrcode