woodpecker/cli/.drone.yml

58 lines
1.2 KiB
YAML
Raw Normal View History

workspace:
base: /go
path: src/github.com/drone/drone-cli
pipeline:
build:
image: golang:1.9
commands: sh .drone.sh
publish_latest:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
when:
event: [push, tag]
publish_alpine:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
auto_tag_suffix: alpine
dockerfile: Dockerfile.alpine
when:
event: [push, tag]
publish_linux_arm:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
auto_tag_suffix: linux-arm
dockerfile: Dockerfile.linux.arm
when:
event: [push, tag]
publish_linux_arm64:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: Dockerfile.linux.arm64
when:
event: [push, tag]
release:
image: plugins/github-release
files:
2021-02-19 08:26:11 +00:00
- release/woodpecker_*.tar.gz
- release/woodpecker_checksums.txt
secrets:
- source: github_token
target: github_release_api_key
when:
event: tag