Try pulling the go repo
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
19
.woodpecker/go-generate.yaml
Normal file
19
.woodpecker/go-generate.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: Clone go repo
|
||||
image: alpine
|
||||
environment:
|
||||
GITEA_USER: devops-bot
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_repo_access
|
||||
commands:
|
||||
- apk update && apk add git
|
||||
- git clone https://gitea.badhouseplants.net/softplayer/softplayer-go-proto.git
|
||||
- name: Generate go code
|
||||
image: bufbuild/buf
|
||||
commands:
|
||||
- buf generate
|
||||
@@ -4,8 +4,7 @@ when:
|
||||
- push
|
||||
|
||||
steps:
|
||||
lint:
|
||||
name: Lint protobufs
|
||||
- name: Lint protobufs
|
||||
image: bufbuild/buf
|
||||
commands:
|
||||
- buf lint
|
||||
|
||||
Reference in New Issue
Block a user