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
- image: plugins/docker
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 20:44:45 +00:00
username:
$secret: username
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
- image: plugins/docker:linux-arm64
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
username:
$secret: username
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
- image: plugins/docker:linux-arm
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
username:
$secret: username
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
username:
$secret: username
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:48:45 +00:00
...