protobufs/.drone.yml
itzaname 3b8af798d4
Some checks reported errors
continuous-integration/drone/push Build encountered an error
New more targeted images
2022-10-29 00:44:54 -04:00

80 lines
1.7 KiB
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/grpc-go:latest
commands:
- scripts/go-gen.sh
- name: commit
image: alpine/git
commands:
- cd go-grpc
- git add *
- 'git commit -m "Autogenerated update for ${DRONE_COMMIT_LINK}" || true'
- git push https://$GIT_USER:$GIT_PASS@git.itzana.me/StrafesNET/go-grpc.git --all
environment:
GIT_USER:
from_secret: GIT_USER
GIT_PASS:
from_secret: GIT_PASS
trigger:
ref:
- refs/heads/master
image_pull_secrets:
- dockerconfigjson
---
kind: pipeline
type: docker
name: generate-python-grpc
steps:
- name: clone-external
image: alpine/git
commands:
- git clone https://$GIT_USER:$GIT_PASS@git.itzana.me/StrafesNET/python-grpc.git
environment:
GIT_USER:
from_secret: GIT_USER
GIT_PASS:
from_secret: GIT_PASS
- name: generate
image: registry.itzana.me/strafesnet/tools/grpc-python:latest
commands:
- scripts/python-gen.sh
- name: commit
image: alpine/git
commands:
- cd python-grpc
- git add *
- 'git commit -m "Autogenerated update for ${DRONE_COMMIT_LINK}" || true'
- git push https://$GIT_USER:$GIT_PASS@git.itzana.me/StrafesNET/python-grpc.git --all
environment:
GIT_USER:
from_secret: GIT_USER
GIT_PASS:
from_secret: GIT_PASS
trigger:
ref:
- refs/heads/master
image_pull_secrets:
- dockerconfigjson