protobufs/.drone.yml

35 lines
729 B
YAML
Raw Normal View History

2022-07-17 03:10:59 +00:00
---
kind: pipeline
type: docker
name: generate-go-grpc
steps:
- name: clone-external
image: alpine/git
commands:
- git clone https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/go-grpc.git
environment:
GIT_USER:
from_secret: GIT_USER
GIT_PASS:
from_secret: GIT_PASS
- name: generate
2022-07-17 03:13:49 +00:00
image: registry.itzana.me/strafesnet/tools/protobuild:latest
2022-07-17 03:10:59 +00:00
commands:
2022-07-17 03:13:49 +00:00
- ./scripts/go-gen.sh
2022-07-17 03:10:59 +00:00
- name: commit
image: alpine/git
commands:
- cd go-grpc
- git add *
2022-07-17 03:12:30 +00:00
- 'git commit -m "GENERATED: ${DRONE_COMMIT_MESSAGE}"'
- git push https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/go-grpc.git --all
2022-07-17 03:10:59 +00:00
trigger:
ref:
- refs/heads/master
image_pull_secrets:
- REGISTRY_FILE