protobufs/.drone.yml
itzaname bec40ca063
Some checks failed
continuous-integration/drone/push Build is failing
CI UPDATE
2022-07-16 23:23:51 -04:00

37 lines
807 B
YAML

---
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
image: registry.itzana.me/strafesnet/tools/protobuild:latest
commands:
- ls scripts
- chmod +x scripts/go-gen.sh
- /bin/bash /drone/src/scripts/go-gen.sh
- name: commit
image: alpine/git
commands:
- cd go-grpc
- git add *
- 'git commit -m "GENERATED: ${DRONE_COMMIT_MESSAGE}"'
- git push 'https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/go-grpc.git' --all
trigger:
ref:
- refs/heads/master
image_pull_secrets:
- dockerconfigjson