harness-drone/.drone.yml

314 lines
5.7 KiB
YAML
Raw Normal View History

2019-02-19 15:56:41 -08:00
---
kind: pipeline
2019-08-06 22:47:04 -07:00
type: docker
2019-02-19 15:56:41 -08:00
name: linux-amd64
platform:
arch: amd64
2019-08-06 22:47:04 -07:00
os: linux
2019-02-19 15:56:41 -08:00
steps:
- name: test
2019-08-20 13:55:04 -07:00
image: golang:1.12.9
2019-02-19 15:56:41 -08:00
commands:
2019-08-06 22:47:04 -07:00
- go test ./...
2019-02-19 15:56:41 -08:00
- name: build
2019-08-20 13:55:04 -07:00
image: golang:1.12.9
2019-02-19 15:56:41 -08:00
commands:
2019-08-06 22:47:04 -07:00
- sh scripts/build.sh
environment:
GOARCH: amd64
GOOS: linux
- name: publish_drone
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
2019-08-06 23:01:12 -07:00
dockerfile: docker/Dockerfile.server.linux.amd64
2019-08-06 22:47:04 -07:00
repo: drone/drone
username:
from_secret: docker_username
password:
from_secret: docker_password
2019-02-19 15:56:41 -08:00
when:
event:
- push
- tag
- name: publish_agent
2019-08-06 22:47:04 -07:00
image: plugins/docker:18
2019-02-19 15:56:41 -08:00
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
dockerfile: docker/Dockerfile.agent.linux.amd64
2017-07-18 14:43:37 -04:00
repo: drone/agent
2019-02-19 15:56:41 -08:00
username:
from_secret: docker_username
2019-08-06 22:47:04 -07:00
password:
from_secret: docker_password
2019-02-19 15:56:41 -08:00
when:
event:
- push
- tag
- name: publish_controller
2019-08-06 22:47:04 -07:00
image: plugins/docker:18
2019-02-19 15:56:41 -08:00
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
dockerfile: docker/Dockerfile.controller.linux.amd64
repo: drone/controller
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
---
kind: pipeline
2019-08-06 22:47:04 -07:00
type: docker
name: linux-arm64
2019-02-19 15:56:41 -08:00
platform:
2019-08-06 22:47:04 -07:00
arch: arm64
2019-02-19 15:56:41 -08:00
os: linux
steps:
- name: build
2019-08-20 13:55:04 -07:00
image: golang:1.12.9
2019-02-19 15:56:41 -08:00
commands:
2019-08-06 22:47:04 -07:00
- sh scripts/build.sh
environment:
GOARCH: arm64
GOOS: linux
2019-02-19 15:56:41 -08:00
2019-08-06 22:47:04 -07:00
- name: publish_drone
image: plugins/docker:18
2019-02-19 15:56:41 -08:00
settings:
auto_tag: true
2019-08-06 22:47:04 -07:00
auto_tag_suffix: linux-arm64
2019-08-06 23:01:12 -07:00
dockerfile: docker/Dockerfile.server.linux.arm64
2019-08-06 22:47:04 -07:00
repo: drone/drone
username:
from_secret: docker_username
2019-02-19 15:56:41 -08:00
password:
from_secret: docker_password
2019-08-06 22:47:04 -07:00
- name: publish_agent
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: docker/Dockerfile.agent.linux.arm64
2017-09-29 11:21:06 -07:00
repo: drone/agent
2019-02-19 15:56:41 -08:00
username:
from_secret: docker_username
2019-08-06 22:47:04 -07:00
password:
from_secret: docker_password
2019-02-19 15:56:41 -08:00
- name: publish_controller
2019-08-06 22:47:04 -07:00
image: plugins/docker:18
2019-02-19 15:56:41 -08:00
settings:
auto_tag: true
2019-08-06 22:47:04 -07:00
auto_tag_suffix: linux-arm64
dockerfile: docker/Dockerfile.controller.linux.arm64
2019-02-19 15:56:41 -08:00
repo: drone/controller
username:
from_secret: docker_username
password:
from_secret: docker_password
2019-08-06 22:47:04 -07:00
trigger:
event:
- push
- tag
depends_on:
- linux-amd64
2019-02-19 15:56:41 -08:00
---
kind: pipeline
2019-08-06 22:47:04 -07:00
type: docker
name: linux-arm
2019-02-19 15:56:41 -08:00
platform:
2019-08-06 22:47:04 -07:00
arch: arm
2019-02-19 15:56:41 -08:00
os: linux
steps:
- name: build
2019-08-20 13:55:04 -07:00
image: golang:1.12.9
2019-02-19 15:56:41 -08:00
commands:
2019-08-06 22:47:04 -07:00
- sh scripts/build.sh
environment:
GOARCH: arm
GOOS: linux
2019-02-19 15:56:41 -08:00
2019-08-06 22:47:04 -07:00
- name: publish_drone
image: plugins/docker:18
2019-02-19 15:56:41 -08:00
settings:
auto_tag: true
2019-08-06 22:47:04 -07:00
auto_tag_suffix: linux-arm
2019-08-06 23:01:12 -07:00
dockerfile: docker/Dockerfile.server.linux.arm
2019-08-06 22:47:04 -07:00
repo: drone/drone
username:
from_secret: docker_username
2019-02-19 15:56:41 -08:00
password:
from_secret: docker_password
2019-08-06 22:47:04 -07:00
- name: publish_agent
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm
dockerfile: docker/Dockerfile.agent.linux.arm
2017-06-29 18:51:22 -04:00
repo: drone/agent
2019-02-19 15:56:41 -08:00
username:
from_secret: docker_username
2019-08-06 22:47:04 -07:00
password:
from_secret: docker_password
2019-02-19 15:56:41 -08:00
- name: publish_controller
2019-08-06 22:47:04 -07:00
image: plugins/docker:18
2019-02-19 15:56:41 -08:00
settings:
auto_tag: true
2019-08-06 22:47:04 -07:00
auto_tag_suffix: linux-arm
dockerfile: docker/Dockerfile.controller.linux.arm
2019-02-19 15:56:41 -08:00
repo: drone/controller
username:
from_secret: docker_username
password:
from_secret: docker_password
2019-08-06 22:47:04 -07:00
trigger:
event:
- push
- tag
depends_on:
- linux-amd64
---
kind: pipeline
type: ssh
name: windows-1809-amd64
platform:
os: windows
server:
2019-08-06 23:08:32 -07:00
host: windows.1809.amd64.ssh.pipeline.drone.ci
2019-08-06 22:47:04 -07:00
password:
from_secret: windows_password
user:
from_secret: windows_username
steps:
- name: build
commands:
- powershell.exe scripts/build.ps1
- docker login -u $env:USERNAME -p $env:PASSWORD
- docker build -f docker/Dockerfile.agent.windows.1809 -t drone/agent:windows-1809-amd64 .
- docker push drone/agent:windows-1809-amd64
environment:
PASSWORD:
from_secret: docker_password
USERNAME:
2019-02-19 15:56:41 -08:00
from_secret: docker_username
2019-08-06 22:47:04 -07:00
trigger:
event:
- push
depends_on:
- linux-amd64
2019-02-19 15:56:41 -08:00
---
kind: pipeline
2019-08-06 22:47:04 -07:00
type: ssh
name: windows-1903-amd64
2019-02-19 15:56:41 -08:00
platform:
2019-08-06 22:47:04 -07:00
os: windows
server:
2019-08-06 23:08:32 -07:00
host: windows.1903.amd64.ssh.pipeline.drone.ci
2019-08-06 22:47:04 -07:00
password:
from_secret: windows_password
user:
from_secret: windows_username
steps:
- name: build
commands:
- powershell.exe scripts/build.ps1
- docker login -u $env:USERNAME -p $env:PASSWORD
- docker build -f docker/Dockerfile.agent.windows.1903 -t drone/agent:windows-1903-amd64 .
- docker push drone/agent:windows-1903-amd64
environment:
PASSWORD:
from_secret: docker_password
USERNAME:
from_secret: docker_username
trigger:
event:
- push
depends_on:
- linux-amd64
---
kind: pipeline
type: docker
name: manifest
2019-02-19 15:56:41 -08:00
steps:
2019-08-06 22:47:04 -07:00
- name: publish_server
2019-08-22 13:21:17 -07:00
image: plugins/manifest:1.2
2019-02-19 15:56:41 -08:00
settings:
2019-02-20 10:34:26 -08:00
auto_tag: true
2019-02-19 15:56:41 -08:00
ignore_missing: true
2019-02-21 11:30:05 -08:00
spec: docker/manifest.server.tmpl
2019-02-19 15:56:41 -08:00
username:
from_secret: docker_username
2019-08-06 22:47:04 -07:00
password:
from_secret: docker_password
2019-02-19 15:56:41 -08:00
2019-08-06 22:47:04 -07:00
- name: publish_agent
2019-08-22 13:21:17 -07:00
image: plugins/manifest:1.2
2019-02-19 15:56:41 -08:00
settings:
2019-02-20 10:34:26 -08:00
auto_tag: true
2019-02-19 15:56:41 -08:00
ignore_missing: true
2019-08-06 22:47:04 -07:00
spec: docker/manifest.agent.tmpl
2019-02-19 15:56:41 -08:00
username:
from_secret: docker_username
2019-08-06 22:47:04 -07:00
password:
from_secret: docker_password
2019-02-19 15:56:41 -08:00
2019-08-06 22:47:04 -07:00
- name: publish_controller
2019-08-22 13:21:17 -07:00
image: plugins/manifest:1.2
2019-02-19 15:56:41 -08:00
settings:
2019-02-20 10:34:26 -08:00
auto_tag: true
2019-02-19 15:56:41 -08:00
ignore_missing: true
2019-08-06 22:47:04 -07:00
spec: docker/manifest.controller.tmpl
2019-02-19 15:56:41 -08:00
username:
from_secret: docker_username
2019-08-06 22:47:04 -07:00
password:
from_secret: docker_password
trigger:
event:
- push
- tag
2019-02-19 15:56:41 -08:00
depends_on:
- linux-arm64
2019-08-06 22:47:04 -07:00
- linux-arm
- windows-1903-amd64
- windows-1809-amd64