1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-23 01:11:57 +01:00
drone-cli/.drone.yml
Julien Duchesne 8e538b63f5
Fix --stream combined with --format for jsonnet (#195)
* Fix `--stream` combined with `--format` for `jsonnet`
If both are defined and jsonnet defines a list, it currently only generates one of the resources
Also added a test for it
* Minimize diffs by keeping all in one file
2021-08-26 15:34:52 +01:00

94 lines
1.8 KiB
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test
image: golang:1.16
commands:
- go test ./...
- name: build
image: golang:1.16
commands:
- sh .drone.sh
- name: publish_latest
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
when:
event: [push, tag]
- name: publish_alpine
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: alpine
dockerfile: Dockerfile.alpine
when:
event: [push, tag]
- name: publish_linux_arm
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-arm
dockerfile: Dockerfile.linux.arm
when:
event: [push, tag]
- name: publish_linux_arm64
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: Dockerfile.linux.arm64
when:
event: [push, tag]
- 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]
- name: release
image: plugins/github-release
settings:
files:
- release/drone_*.tar.gz
- release/drone_checksums.txt
api_key:
from_secret: github_token
when:
event: tag