Sometimes if you actually provide the secrets to the pipeline stage it works.........
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
itzaname 2022-07-23 02:38:00 -04:00
parent 59c73e7703
commit 0d49196ce0

View File

@ -7,7 +7,7 @@ steps:
- name: clone-external - name: clone-external
image: alpine/git image: alpine/git
commands: commands:
- git clone git@git.itzana.me:StrafesNET/go-grpc.git - git clone 'https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/go-grpc.git'
environment: environment:
GIT_USER: GIT_USER:
from_secret: GIT_USER from_secret: GIT_USER
@ -23,10 +23,14 @@ steps:
image: alpine/git image: alpine/git
commands: commands:
- cd go-grpc - cd go-grpc
- mkdir -p .ssh && echo '${GIT_KEY}' > .ssh/id_rsa
- git add * - git add *
- 'git commit -m "Autogenerated update for ${DRONE_COMMIT_LINK}" || true' - 'git commit -m "Autogenerated update for ${DRONE_COMMIT_LINK}" || true'
- git push git@git.itzana.me:StrafesNET/go-grpc.git --all - 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: trigger:
ref: ref:
@ -43,12 +47,12 @@ steps:
- name: clone-external - name: clone-external
image: alpine/git image: alpine/git
commands: commands:
- git clone git@git.itzana.me:StrafesNET/python-grpc.git - git clone 'https://${GIT_USER}:${GIT_PASS}@git.itzana.me/StrafesNET/python-grpc.git'
environment: environment:
GIT_USER: GIT_USER:
from_secret: GIT_USER from_secret: GIT_USER
from_secret: GIT_PASS
GIT_PASS: GIT_PASS:
from_secret: GIT_PASS
- name: generate - name: generate
image: registry.itzana.me/strafesnet/tools/protobuild:latest image: registry.itzana.me/strafesnet/tools/protobuild:latest
@ -59,10 +63,14 @@ steps:
image: alpine/git image: alpine/git
commands: commands:
- cd python-grpc - cd python-grpc
- mkdir -p .ssh && echo '${GIT_KEY}' > .ssh/id_rsa
- git add * - git add *
- 'git commit -m "Autogenerated update for ${DRONE_COMMIT_LINK}" || true' - 'git commit -m "Autogenerated update for ${DRONE_COMMIT_LINK}" || true'
- git push git@git.itzana.me:StrafesNET/python-grpc.git --all - 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: trigger:
ref: ref: