update github push
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
74c5faaebd
commit
687ec80069
|
@ -107,7 +107,16 @@ steps:
|
||||||
|
|
||||||
- name: github push
|
- name: github push
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: github_private_key
|
||||||
commands:
|
commands:
|
||||||
|
- mkdir $HOME/.ssh
|
||||||
|
- git config core.sshCommand "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
||||||
|
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
|
||||||
|
- chmod 600 $HOME/.ssh/id_rsa
|
||||||
|
- git remote add gh git@github.com:zoomyboy/adrema.git
|
||||||
|
- git push -f gh HEAD:master
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
Loading…
Reference in New Issue