update github push
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2023-08-16 01:27:07 +02:00
parent 74c5faaebd
commit 687ec80069
1 changed files with 9 additions and 0 deletions

View File

@ -107,7 +107,16 @@ steps:
- name: github push
image: alpine/git
environment:
SSH_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" > $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:
branch: master
event: push