2018-08-08 21:43:53 +00:00
|
|
|
---
|
|
|
|
metadata:
|
|
|
|
name: linux-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
name: linux/amd64
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
- test:
|
|
|
|
image: golang:1.10
|
|
|
|
commands:
|
|
|
|
- cd posix
|
|
|
|
- tar -xf fixtures.tar -C /
|
|
|
|
- go test -v
|
|
|
|
|
|
|
|
- publish:
|
|
|
|
image: plugins/docker
|
|
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
|
|
|
repo: drone/git
|
2018-08-09 06:34:24 +00:00
|
|
|
secrets:
|
|
|
|
- docker_username
|
|
|
|
- docker_password
|
2018-08-08 21:43:53 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2018-08-09 06:34:24 +00:00
|
|
|
secrets:
|
|
|
|
docker_username:
|
|
|
|
external:
|
|
|
|
name: drone/docker#username
|
|
|
|
docker_password:
|
|
|
|
external:
|
|
|
|
name: drone/docker#password
|
|
|
|
|
2018-08-08 21:43:53 +00:00
|
|
|
---
|
|
|
|
metadata:
|
|
|
|
name: linux-arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
name: linux/arm64
|
|
|
|
|
|
|
|
pipeline:
|
2018-08-08 21:44:57 +00:00
|
|
|
- test:
|
2018-08-08 21:43:53 +00:00
|
|
|
image: arm64v8/golang:1.10
|
|
|
|
commands:
|
|
|
|
- cd posix
|
|
|
|
- tar -xf fixtures.tar -C /
|
|
|
|
- go test -v
|
|
|
|
|
2018-08-08 21:44:57 +00:00
|
|
|
- publish:
|
2018-08-08 21:43:53 +00:00
|
|
|
image: plugins/docker:linux-arm64
|
|
|
|
dockerfile: docker/Dockerfile.linux.arm64
|
|
|
|
repo: drone/git
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
2018-08-09 06:34:24 +00:00
|
|
|
secrets:
|
|
|
|
- docker_username
|
|
|
|
- docker_password
|
2018-08-08 21:43:53 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2018-08-09 06:34:24 +00:00
|
|
|
|
|
|
|
secrets:
|
|
|
|
docker_username:
|
|
|
|
external:
|
|
|
|
name: drone/docker#username
|
|
|
|
docker_password:
|
|
|
|
external:
|
|
|
|
name: drone/docker#password
|
2018-08-09 17:05:17 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
metadata:
|
|
|
|
name: linux-arm
|
|
|
|
|
|
|
|
platform:
|
|
|
|
name: linux/arm
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
- test:
|
|
|
|
image: arm32v7/golang:1.10.3
|
|
|
|
commands:
|
|
|
|
- cd posix
|
|
|
|
- tar -xf fixtures.tar -C /
|
|
|
|
- go test -v
|
|
|
|
|
|
|
|
- publish:
|
|
|
|
image: plugins/docker:linux-arm
|
|
|
|
dockerfile: docker/Dockerfile.linux.arm
|
|
|
|
repo: drone/git
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm
|
|
|
|
secrets:
|
|
|
|
- docker_username
|
|
|
|
- docker_password
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
docker_username:
|
|
|
|
external:
|
|
|
|
name: drone/docker#username
|
|
|
|
docker_password:
|
|
|
|
external:
|
|
|
|
name: drone/docker#password
|