Dockerfiles/.drone.yml

44 lines
1.4 KiB
YAML

kind: pipeline
type: docker
name: docker-build
steps:
- name: deploy-mkdocs
image: plugins/docker
settings:
registry: registry.cn-shenzhen.aliyuncs.com
repo: registry.cn-shenzhen.aliyuncs.com/amass_toolset/develop
tags: mkdocs
dockerfile: mkdocs.dockerfile
username: 168062547@qq.com
password:
from_secret: docker_password
- name: deploy-ubuntu2004
image: plugins/docker
settings:
registry: registry.cn-shenzhen.aliyuncs.com
repo: registry.cn-shenzhen.aliyuncs.com/amass_toolset/develop
tags: ubuntu2004
dockerfile: ubuntu2004.dockerfile
username: 168062547@qq.com
password:
from_secret: docker_password
- name: deploy-raspberrypi
image: plugins/docker
settings:
registry: registry.cn-shenzhen.aliyuncs.com
repo: registry.cn-shenzhen.aliyuncs.com/amass_toolset/develop
tags: raspberrypi
dockerfile: raspberrypi.dockerfile
username: 168062547@qq.com
password:
from_secret: docker_password
- name: notify
image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/develop:20.04
when:
status:
- failure
- success
commands:
- >-
cat resources/notify.tpl | envsubst | jq -sR . | xargs -0 -I {} curl -H "Content-Type: application/json" -X POST -d '{"type":"text","msg":{} }' https://amass.fun/notify