mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-18 07:54:28 +00:00
58 lines
1.2 KiB
YAML
58 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/drone_*.tar.gz
|
||
|
- release/drone_checksums.txt
|
||
|
secrets:
|
||
|
- source: github_token
|
||
|
target: github_release_api_key
|
||
|
when:
|
||
|
event: tag
|