mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
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:
|
|
- release/woodpecker_*.tar.gz
|
|
- release/woodpecker_checksums.txt
|
|
secrets:
|
|
- source: github_token
|
|
target: github_release_api_key
|
|
when:
|
|
event: tag
|