1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-23 01:11:57 +01:00
drone-cli/.drone.yml

94 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2019-09-01 21:15:08 +02:00
kind: pipeline
type: docker
name: default
2015-02-13 10:01:28 +01:00
2019-09-01 21:15:08 +02:00
steps:
- name: test
image: golang:1.16
commands:
- go test ./...
2019-09-01 21:15:08 +02:00
- name: build
2021-03-24 09:22:56 +01:00
image: golang:1.16
2019-09-01 21:15:08 +02:00
commands:
- sh .drone.sh
2017-05-22 15:18:17 +02:00
2019-09-01 21:15:08 +02:00
- name: publish_latest
image: plugins/docker
settings:
2017-09-13 00:28:13 +02:00
repo: drone/cli
2019-09-01 21:15:08 +02:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2018-02-20 19:58:56 +01:00
auto_tag: true
2019-09-01 21:15:08 +02:00
when:
event: [push, tag]
2018-02-20 19:58:56 +01:00
2019-09-01 21:15:08 +02:00
- name: publish_alpine
image: plugins/docker
settings:
2018-02-20 19:58:56 +01:00
repo: drone/cli
2019-09-01 21:15:08 +02:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2018-02-20 19:58:56 +01:00
auto_tag: true
auto_tag_suffix: alpine
dockerfile: Dockerfile.alpine
2019-09-01 21:15:08 +02:00
when:
event: [push, tag]
2017-09-13 00:28:13 +02:00
2019-09-01 21:15:08 +02:00
- name: publish_linux_arm
image: plugins/docker
settings:
2018-02-20 20:12:02 +01:00
repo: drone/cli
2019-09-01 21:15:08 +02:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2018-02-20 20:12:02 +01:00
auto_tag: true
2018-02-21 00:20:59 +01:00
auto_tag_suffix: linux-arm
dockerfile: Dockerfile.linux.arm
2019-09-01 21:15:08 +02:00
when:
event: [push, tag]
2018-02-20 20:12:02 +01:00
2019-09-01 21:15:08 +02:00
- name: publish_linux_arm64
image: plugins/docker
settings:
2018-02-20 20:12:02 +01:00
repo: drone/cli
2019-09-01 21:15:08 +02:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2018-02-20 20:12:02 +01:00
auto_tag: true
2018-02-21 00:20:59 +01:00
auto_tag_suffix: linux-arm64
dockerfile: Dockerfile.linux.arm64
2019-09-01 21:15:08 +02:00
when:
event: [push, tag]
2018-02-20 20:12:02 +01:00
- name: publish_linux_ppc64le
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-ppc64le
dockerfile: Dockerfile.linux.ppc64le
when:
event: [push, tag]
2019-09-01 21:15:08 +02:00
- name: release
image: plugins/github-release
settings:
2017-05-22 15:18:17 +02:00
files:
- release/drone_*.tar.gz
- release/drone_checksums.txt
2019-09-01 21:15:08 +02:00
api_key:
from_secret: github_token
when:
event: tag