ci: moves drone config to build dir
This commit is contained in:
parent
949d97b49c
commit
62e1ee822a
52
.drone.yml
52
.drone.yml
@ -1,52 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: tags
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git fetch --tags
|
|
||||||
|
|
||||||
- name: lint
|
|
||||||
image: golangci/golangci-lint:latest
|
|
||||||
commands:
|
|
||||||
- make install-tools
|
|
||||||
- make lint
|
|
||||||
depends_on:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
- name: test
|
|
||||||
image: golang:latest
|
|
||||||
commands:
|
|
||||||
- make test
|
|
||||||
depends_on:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: goreleaser/goreleaser:v0.162.0
|
|
||||||
commands:
|
|
||||||
- make build
|
|
||||||
depends_on:
|
|
||||||
- tags
|
|
||||||
- lint
|
|
||||||
- test
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: release
|
|
||||||
image: goreleaser/goreleaser:v0.162.0
|
|
||||||
environment:
|
|
||||||
GITHUB_TOKEN:
|
|
||||||
from_secret: github_token
|
|
||||||
commands:
|
|
||||||
- goreleaser release --rm-dist
|
|
||||||
depends_on:
|
|
||||||
- tags
|
|
||||||
- lint
|
|
||||||
- test
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
1
.drone.yml
Symbolic link
1
.drone.yml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
build/ci/drone.yml
|
52
build/ci/drone.yml
Normal file
52
build/ci/drone.yml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: tags
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
image: golangci/golangci-lint:latest
|
||||||
|
commands:
|
||||||
|
- make install-tools
|
||||||
|
- make lint
|
||||||
|
depends_on:
|
||||||
|
- tags
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: golang:latest
|
||||||
|
commands:
|
||||||
|
- make test
|
||||||
|
depends_on:
|
||||||
|
- tags
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: goreleaser/goreleaser:v0.162.0
|
||||||
|
commands:
|
||||||
|
- make build
|
||||||
|
depends_on:
|
||||||
|
- tags
|
||||||
|
- lint
|
||||||
|
- test
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: goreleaser/goreleaser:v0.162.0
|
||||||
|
environment:
|
||||||
|
GITHUB_TOKEN:
|
||||||
|
from_secret: github_token
|
||||||
|
commands:
|
||||||
|
- goreleaser release --rm-dist
|
||||||
|
depends_on:
|
||||||
|
- tags
|
||||||
|
- lint
|
||||||
|
- test
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
Loading…
Reference in New Issue
Block a user