Use ssh keys
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
cd9d0d127a
commit
8355104104
12
.drone.yml
12
.drone.yml
@ -7,7 +7,7 @@ steps:
|
||||
- name: clone-external
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git clone 'https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/go-grpc.git'
|
||||
- git clone git@git.itzana.me:StrafesNET/go-grpc.git
|
||||
environment:
|
||||
GIT_USER:
|
||||
from_secret: GIT_USER
|
||||
@ -23,9 +23,10 @@ steps:
|
||||
image: alpine/git
|
||||
commands:
|
||||
- cd go-grpc
|
||||
- mkdir -p .ssh && echo '${GIT_KEY'} > .ssh/id_rsa
|
||||
- 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
|
||||
- git push git@git.itzana.me:StrafesNET/go-grpc.git --all
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
@ -42,12 +43,12 @@ steps:
|
||||
- name: clone-external
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git clone 'https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/python-grpc.git'
|
||||
- git clone git@git.itzana.me:StrafesNET/python-grpc.git
|
||||
environment:
|
||||
GIT_USER:
|
||||
from_secret: GIT_USER
|
||||
GIT_PASS:
|
||||
from_secret: GIT_PASS
|
||||
GIT_PASS:
|
||||
|
||||
- name: generate
|
||||
image: registry.itzana.me/strafesnet/tools/protobuild:latest
|
||||
@ -58,9 +59,10 @@ steps:
|
||||
image: alpine/git
|
||||
commands:
|
||||
- cd python-grpc
|
||||
- mkdir -p .ssh && echo '${GIT_KEY'} > .ssh/id_rsa
|
||||
- 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
|
||||
- git push git@git.itzana.me:StrafesNET/python-grpc.git --all
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
|
Loading…
Reference in New Issue
Block a user