git-docker/.drone.yml
2018-08-08 23:34:24 -07:00

81 lines
1.3 KiB
YAML

---
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
auto_tag: true
auto_tag_suffix: linux-amd64
secrets:
- docker_username
- docker_password
when:
event:
- push
- tag
secrets:
docker_username:
external:
name: drone/docker#username
docker_password:
external:
name: drone/docker#password
---
metadata:
name: linux-arm64
platform:
name: linux/arm64
clone:
disable: true
pipeline:
- clone:
image: arm64v8/golang:1.10
commands:
- git clone https://github.com/drone/drone-git.git .
- test:
image: arm64v8/golang:1.10
commands:
- cd posix
- tar -xf fixtures.tar -C /
- go test -v
- publish:
image: plugins/docker:linux-arm64
dockerfile: docker/Dockerfile.linux.arm64
repo: drone/git
auto_tag: true
auto_tag_suffix: linux-arm64
secrets:
- docker_username
- docker_password
when:
event:
- push
- tag
secrets:
docker_username:
external:
name: drone/docker#username
docker_password:
external:
name: drone/docker#password