28 lines
432 B
YAML
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 |