Add Drone CI config to mirror to GitHub
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
This commit is contained in:
parent
41e32d7dfc
commit
2ffe9dd8f9
18
.drone.yml
Normal file
18
.drone.yml
Normal file
@ -0,0 +1,18 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: mirror-to-github
|
||||
image: alpine:latest
|
||||
environment:
|
||||
SSH_PRIVATE_KEY:
|
||||
from_secret: GITHUB_DEPLOY_KEY
|
||||
commands:
|
||||
- apk add --no-cache openssh git
|
||||
- mkdir -p /root/.ssh
|
||||
- echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa
|
||||
- chmod 600 /root/.ssh/id_rsa
|
||||
- ssh-keyscan github.com >> /root/.ssh/known_hosts
|
||||
- git remote add github git@github.com:ekaropolus/polisplexity.tech.git
|
||||
- git push --mirror github
|
Loading…
x
Reference in New Issue
Block a user