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

128 lines
2.3 KiB
YAML
Raw 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.18
commands:
- go test ./...
2019-09-01 21:15:08 +02:00
- name: build
image: golang:1.18
2019-09-01 21:15:08 +02:00
commands:
- sh .drone.sh
depends_on:
- test
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]
depends_on:
- build
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]
depends_on:
- build
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]
depends_on:
- build
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]
depends_on:
- build
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]
depends_on:
- build
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
depends_on:
- build
- name: manifest
2023-08-11 15:43:41 +02:00
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
2023-08-11 15:09:34 +02:00
spec: docker/manifest.tmpl
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: [push, tag]
depends_on:
- publish_latest
- publish_alpine
- publish_linux_arm
- publish_linux_arm64
- publish_linux_ppc64le