1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-27 11:00:48 +00:00
steve/.drone.yml

58 lines
1.0 KiB
YAML
Raw Normal View History

---
kind: pipeline
name: fossa
steps:
- name: fossa
image: rancher/drone-fossa:latest
settings:
api_key:
from_secret: FOSSA_API_KEY
2022-10-14 20:02:53 +00:00
when:
instance:
include:
- drone-publish.rancher.io
exclude:
- drone-pr.rancher.io
---
kind: pipeline
name: build
steps:
- name: build
image: registry.suse.com/bci/golang:1.19
commands:
- make build-bin
when:
event:
- push
- pull_request
---
kind: pipeline
name: validate
steps:
- name: validate
image: registry.suse.com/bci/bci-base:15.4
commands:
- zypper in -y go=1.19 git tar gzip make
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0
- mv ./bin/golangci-lint /usr/local/bin/golangci-lint
- make validate
when:
event:
- push
- pull_request
---
kind: pipeline
2022-10-14 20:02:53 +00:00
name: test
steps:
- name: test
image: registry.suse.com/bci/golang:1.19
commands:
- make test
when:
2022-10-14 20:02:53 +00:00
event:
- push
- pull_request