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