2019-02-19 23:56:41 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-08-07 05:47:04 +00:00
|
|
|
type: docker
|
2019-02-19 23:56:41 +00:00
|
|
|
name: linux-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: amd64
|
2019-08-07 05:47:04 +00:00
|
|
|
os: linux
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2019-08-20 20:55:04 +00:00
|
|
|
image: golang:1.12.9
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00:00
|
|
|
- go test ./...
|
|
|
|
|
2019-02-19 23:56:41 +00:00
|
|
|
- name: build
|
2019-08-20 20:55:04 +00:00
|
|
|
image: golang:1.12.9
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00: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-07 06:01:12 +00:00
|
|
|
dockerfile: docker/Dockerfile.server.linux.amd64
|
2019-08-07 05:47:04 +00:00
|
|
|
repo: drone/drone
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_agent
|
2019-08-07 05:47:04 +00:00
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
|
|
|
dockerfile: docker/Dockerfile.agent.linux.amd64
|
2017-07-18 18:43:37 +00:00
|
|
|
repo: drone/agent
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-08-07 05:47:04 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_controller
|
2019-08-07 05:47:04 +00:00
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00: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-07 05:47:04 +00:00
|
|
|
type: docker
|
|
|
|
name: linux-arm64
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
platform:
|
2019-08-07 05:47:04 +00:00
|
|
|
arch: arm64
|
2019-02-19 23:56:41 +00:00
|
|
|
os: linux
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2019-08-20 20:55:04 +00:00
|
|
|
image: golang:1.12.9
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00:00
|
|
|
- sh scripts/build.sh
|
|
|
|
environment:
|
|
|
|
GOARCH: arm64
|
|
|
|
GOOS: linux
|
2019-02-19 23:56:41 +00:00
|
|
|
|
2019-08-07 05:47:04 +00:00
|
|
|
- name: publish_drone
|
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-08-07 05:47:04 +00:00
|
|
|
auto_tag_suffix: linux-arm64
|
2019-08-07 06:01:12 +00:00
|
|
|
dockerfile: docker/Dockerfile.server.linux.arm64
|
2019-08-07 05:47:04 +00:00
|
|
|
repo: drone/drone
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-02-19 23:56:41 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-08-07 05:47:04 +00: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 18:21:06 +00:00
|
|
|
repo: drone/agent
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-08-07 05:47:04 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
- name: publish_controller
|
2019-08-07 05:47:04 +00:00
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-08-07 05:47:04 +00:00
|
|
|
auto_tag_suffix: linux-arm64
|
|
|
|
dockerfile: docker/Dockerfile.controller.linux.arm64
|
2019-02-19 23:56:41 +00:00
|
|
|
repo: drone/controller
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
2019-08-07 05:47:04 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-08-07 05:47:04 +00:00
|
|
|
type: docker
|
|
|
|
name: linux-arm
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
platform:
|
2019-08-07 05:47:04 +00:00
|
|
|
arch: arm
|
2019-02-19 23:56:41 +00:00
|
|
|
os: linux
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2019-08-20 20:55:04 +00:00
|
|
|
image: golang:1.12.9
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00:00
|
|
|
- sh scripts/build.sh
|
|
|
|
environment:
|
|
|
|
GOARCH: arm
|
|
|
|
GOOS: linux
|
2019-02-19 23:56:41 +00:00
|
|
|
|
2019-08-07 05:47:04 +00:00
|
|
|
- name: publish_drone
|
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-08-07 05:47:04 +00:00
|
|
|
auto_tag_suffix: linux-arm
|
2019-08-07 06:01:12 +00:00
|
|
|
dockerfile: docker/Dockerfile.server.linux.arm
|
2019-08-07 05:47:04 +00:00
|
|
|
repo: drone/drone
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-02-19 23:56:41 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-08-07 05:47:04 +00: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 22:51:22 +00:00
|
|
|
repo: drone/agent
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-08-07 05:47:04 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
- name: publish_controller
|
2019-08-07 05:47:04 +00:00
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-08-07 05:47:04 +00:00
|
|
|
auto_tag_suffix: linux-arm
|
|
|
|
dockerfile: docker/Dockerfile.controller.linux.arm
|
2019-02-19 23:56:41 +00:00
|
|
|
repo: drone/controller
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-08-07 05:47:04 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: ssh
|
|
|
|
name: windows-1809-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: windows
|
|
|
|
|
|
|
|
server:
|
2019-08-07 06:08:32 +00:00
|
|
|
host: windows.1809.amd64.ssh.pipeline.drone.ci
|
2019-08-07 05:47:04 +00: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 23:56:41 +00:00
|
|
|
from_secret: docker_username
|
|
|
|
|
2019-08-07 05:47:04 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-08-07 05:47:04 +00:00
|
|
|
type: ssh
|
|
|
|
name: windows-1903-amd64
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
platform:
|
2019-08-07 05:47:04 +00:00
|
|
|
os: windows
|
|
|
|
|
|
|
|
server:
|
2019-08-07 06:08:32 +00:00
|
|
|
host: windows.1903.amd64.ssh.pipeline.drone.ci
|
2019-08-07 05:47:04 +00: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 23:56:41 +00:00
|
|
|
|
|
|
|
steps:
|
2019-08-07 05:47:04 +00:00
|
|
|
- name: publish_server
|
2019-08-22 20:21:17 +00:00
|
|
|
image: plugins/manifest:1.2
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
2019-02-20 18:34:26 +00:00
|
|
|
auto_tag: true
|
2019-02-19 23:56:41 +00:00
|
|
|
ignore_missing: true
|
2019-02-21 19:30:05 +00:00
|
|
|
spec: docker/manifest.server.tmpl
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-08-07 05:47:04 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
|
2019-08-07 05:47:04 +00:00
|
|
|
- name: publish_agent
|
2019-08-22 20:21:17 +00:00
|
|
|
image: plugins/manifest:1.2
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
2019-02-20 18:34:26 +00:00
|
|
|
auto_tag: true
|
2019-02-19 23:56:41 +00:00
|
|
|
ignore_missing: true
|
2019-08-07 05:47:04 +00:00
|
|
|
spec: docker/manifest.agent.tmpl
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-08-07 05:47:04 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
|
2019-08-07 05:47:04 +00:00
|
|
|
- name: publish_controller
|
2019-08-22 20:21:17 +00:00
|
|
|
image: plugins/manifest:1.2
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
2019-02-20 18:34:26 +00:00
|
|
|
auto_tag: true
|
2019-02-19 23:56:41 +00:00
|
|
|
ignore_missing: true
|
2019-08-07 05:47:04 +00:00
|
|
|
spec: docker/manifest.controller.tmpl
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-08-07 05:47:04 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-arm64
|
2019-08-07 05:47:04 +00:00
|
|
|
- linux-arm
|
|
|
|
- windows-1903-amd64
|
|
|
|
- windows-1809-amd64
|