gagent/.drone.yml

54 lines
1,003 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: default
platform:
os: linux
2021-03-31 06:17:43 +00:00
arch: amd64
# trigger:
# branch:
# exclude:
# - main
clone:
depth: 1
volumes:
- name: dockersock
host:
path: /run/docker.sock
steps:
- name: Build ${DRONE_REPO} Container Image
image: plugins/docker
volumes:
- name: dockersock
path: /var/run/docker.sock
settings:
auto_tag: false
daemon_off: true
debug: false
dockerfile: docker/Dockerfile
mirror: "https://registry.dragonheim.net/"
purge: true
repo: ${DRONE_REPO}
# target: development
username:
from_secret: docker_username
password:
from_secret: docker_auth
- name: Send Status To Datadog
image: masci/drone-datadog
settings:
api_key:
from_secret: Datadog
events:
- title: "Build failure"
text: "Build ${DRONE_BUILD_NUMBER}"
alert_type: "error"
when:
status:
- failure