2018-08-08 21:43:53 +00:00
|
|
|
---
|
2018-09-17 20:44:45 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: linux-amd64
|
2018-08-08 21:43:53 +00:00
|
|
|
|
|
|
|
platform:
|
2018-09-17 20:44:45 +00:00
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.10
|
|
|
|
commands:
|
|
|
|
- cd posix
|
|
|
|
- tar -xf fixtures.tar -C /
|
|
|
|
- go test -v
|
|
|
|
|
2018-09-17 20:50:56 +00:00
|
|
|
- name: push
|
|
|
|
image: plugins/docker
|
2018-09-17 20:44:45 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
2018-08-08 21:43:53 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
2018-09-17 20:44:45 +00:00
|
|
|
password:
|
2019-08-05 04:37:08 +00:00
|
|
|
from_secret: docker_password
|
2018-08-08 21:43:53 +00:00
|
|
|
repo: drone/git
|
2018-09-17 22:05:14 +00:00
|
|
|
username: drone
|
2018-09-17 20:44:45 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2018-08-09 06:34:24 +00:00
|
|
|
|
2018-08-08 21:43:53 +00:00
|
|
|
---
|
2018-09-17 20:44:45 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: linux-arm64
|
2018-08-08 21:43:53 +00:00
|
|
|
|
|
|
|
platform:
|
2018-09-17 20:44:45 +00:00
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.10
|
|
|
|
commands:
|
|
|
|
- cd posix
|
|
|
|
- tar -xf fixtures.tar -C /
|
|
|
|
- go test -v
|
|
|
|
|
2018-09-17 20:50:56 +00:00
|
|
|
- name: push
|
|
|
|
image: plugins/docker:linux-arm64
|
2018-09-17 20:44:45 +00:00
|
|
|
settings:
|
2018-08-08 21:43:53 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
2018-09-17 20:44:45 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.arm64
|
|
|
|
password:
|
2019-08-05 04:37:08 +00:00
|
|
|
from_secret: docker_password
|
2018-09-17 20:44:45 +00:00
|
|
|
repo: drone/git
|
2018-09-17 22:05:14 +00:00
|
|
|
username: drone
|
2018-09-17 20:44:45 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2018-08-09 17:05:17 +00:00
|
|
|
|
|
|
|
---
|
2018-09-17 20:44:45 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: linux-arm
|
2018-08-09 17:05:17 +00:00
|
|
|
|
|
|
|
platform:
|
2018-09-17 20:44:45 +00:00
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.10
|
|
|
|
commands:
|
|
|
|
- cd posix
|
|
|
|
- tar -xf fixtures.tar -C /
|
|
|
|
- go test -v
|
|
|
|
|
2018-09-17 20:50:56 +00:00
|
|
|
- name: push
|
|
|
|
image: plugins/docker:linux-arm
|
2018-09-17 20:44:45 +00:00
|
|
|
settings:
|
2018-08-09 17:05:17 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm
|
2018-09-17 20:44:45 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.arm
|
|
|
|
password:
|
2019-08-05 04:37:08 +00:00
|
|
|
from_secret: docker_password
|
2018-09-17 20:44:45 +00:00
|
|
|
repo: drone/git
|
2018-09-17 22:05:14 +00:00
|
|
|
username: drone
|
2018-09-17 20:44:45 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2019-08-05 05:26:47 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: ssh
|
|
|
|
name: windows-1809-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: windows
|
|
|
|
|
|
|
|
server:
|
|
|
|
host:
|
|
|
|
from_secret: windows_1809_server
|
|
|
|
user:
|
|
|
|
from_secret: windows_1809_username
|
|
|
|
password:
|
|
|
|
from_secret: windows_1809_password
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: docker
|
|
|
|
environment:
|
|
|
|
PASSWORD:
|
|
|
|
from_secret: docker_password
|
|
|
|
commands:
|
|
|
|
- docker login -u drone -p $PASSWORD
|
|
|
|
- docker build -f docker/Dockerfile.windows.1809 -t drone/git:windows-1809-amd64 .
|
|
|
|
- docker push drone/git:windows-1809-amd64
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2018-09-17 20:44:45 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: after
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: manifest
|
|
|
|
image: plugins/manifest:1
|
|
|
|
settings:
|
|
|
|
ignore_missing: true
|
|
|
|
password:
|
2019-08-05 04:37:08 +00:00
|
|
|
from_secret: docker_password
|
2018-09-17 20:44:45 +00:00
|
|
|
spec: docker/manifest.tmpl
|
2018-09-17 22:05:14 +00:00
|
|
|
username: drone
|
2018-09-17 20:44:45 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-arm
|
|
|
|
- linux-arm64
|
|
|
|
- linux-amd64
|
2019-08-05 05:26:47 +00:00
|
|
|
- windows-1809-amd64
|
2018-09-17 20:44:45 +00:00
|
|
|
|
2018-09-17 20:50:56 +00:00
|
|
|
...
|