gagent/.drone.yml

119 lines
2.2 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
2021-04-03 13:51:58 -07:00
name: build amd64
platform:
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 On amd64
image: plugins/docker
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
GOOS: linux
GOARCH: amd64
settings:
auto_tag: false
daemon_off: true
debug: false
dockerfile: docker/Dockerfile
dry_run: true
experimental: true
mirror: "https://registry.dragonheim.net/"
pull_image: false
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 on amd64"
text: "Build ${DRONE_BUILD_NUMBER}"
alert_type: "error"
when:
status:
- failure
---
kind: pipeline
type: docker
2021-04-03 13:51:58 -07:00
name: build arm
platform:
arch: arm
# trigger:
# branch:
# exclude:
# - main
clone:
depth: 1
volumes:
- name: dockersock
host:
path: /run/docker.sock
steps:
- name: Build ${DRONE_REPO} Container Image On arm
image: plugins/docker
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
GOOS: linux
GOARCH: arm
settings:
auto_tag: false
daemon_off: true
debug: false
dockerfile: docker/Dockerfile
dry_run: true
experimental: true
mirror: "https://registry.dragonheim.net/"
pull_image: false
purge: true
repo: ${DRONE_REPO}
# target: development
username:
from_secret: docker_username
password:
from_secret: docker_auth
- name: Send Status To Datadog
image: dragonheim/drone-datadog
settings:
api_key:
from_secret: Datadog
events:
- title: "Build failure on arm"
text: "Build ${DRONE_BUILD_NUMBER}"
alert_type: "error"
when:
status:
- failure