Compare commits
1 Commits
developmen
...
feature-dr
Author | SHA1 | Date | |
---|---|---|---|
3ebc0de61f |
@ -7,14 +7,39 @@ def main(ctx):
|
|||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
"type": "docker",
|
"type": "docker",
|
||||||
"name": "golangci-lint",
|
"name": "golangci-lint",
|
||||||
|
"clone": {"disable": True},
|
||||||
"environment": {
|
"environment": {
|
||||||
"GOPROXY": "direct"
|
"GOPROXY": "direct"
|
||||||
},
|
},
|
||||||
"steps": [
|
"steps": [
|
||||||
|
{
|
||||||
|
"name": "skip-check",
|
||||||
|
"image": "docker.io/immawanderer/drone-skip-pipeline:linux-amd64",
|
||||||
|
"pull": "always",
|
||||||
|
"settings": {
|
||||||
|
"rules": [
|
||||||
|
"*.go",
|
||||||
|
"*.sum",
|
||||||
|
"*.mod",
|
||||||
|
".golangci.yml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "clone",
|
||||||
|
"image": "docker.io/alpine/git",
|
||||||
|
"pull": "always",
|
||||||
|
"depends_on": ["skip-check"],
|
||||||
|
"commands": [
|
||||||
|
"git clone ${DRONE_GIT_HTTP_URL} .",
|
||||||
|
"git checkout ${DRONE_COMMIT}"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "golangci-lint",
|
"name": "golangci-lint",
|
||||||
"image": "docker.io/immawanderer/archlinux-go-fyne:linux-amd64",
|
"image": "docker.io/immawanderer/archlinux-go-fyne:linux-amd64",
|
||||||
"pull": "always",
|
"pull": "always",
|
||||||
|
"depends_on": ["clone"],
|
||||||
"commands": [
|
"commands": [
|
||||||
"curl -sSfL " +
|
"curl -sSfL " +
|
||||||
"https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh"+
|
"https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh"+
|
||||||
|
Loading…
Reference in New Issue
Block a user