git-docker/.drone.yml

130 lines
1.8 KiB
YAML
Raw Normal View History

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:
$secret: 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:
$secret: password
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:
$secret: password
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
---
kind: pipeline
name: after
platform:
os: linux
arch: amd64
steps:
- name: manifest
image: plugins/manifest:1
settings:
ignore_missing: true
password:
$secret: password
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
---
kind: secret
type: external
data:
password: "drone/docker#password"
username: "drone/docker#username"
2018-09-17 20:50:56 +00:00
...