update drone
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
46f995711f
commit
5c67a45537
20
.drone.yml
20
.drone.yml
|
@ -144,15 +144,19 @@ steps:
|
||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
- name: github-push
|
- name: github push
|
||||||
image: appleboy/drone-git-push
|
image: alpine/git
|
||||||
settings:
|
environment:
|
||||||
branch: master
|
SSH_KEY:
|
||||||
remote: ssh://git@github.com:zoomyboy/adrema.git
|
|
||||||
force: true
|
|
||||||
commit: false
|
|
||||||
ssh_key:
|
|
||||||
from_secret: github_private_key
|
from_secret: github_private_key
|
||||||
|
commands:
|
||||||
|
- mkdir $HOME/.ssh
|
||||||
|
- git config core.sshCommand "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
||||||
|
- echo "$SSH_KEY"
|
||||||
|
- 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:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue