feat: mirror to github

This commit is contained in:
curben 2019-10-01 06:45:59 +01:00
parent 36fe426df3
commit b1319311e6
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 7 additions and 1 deletions

View File

@ -17,13 +17,14 @@ deploy_job:
# Import private key with ed25519 workaround
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- echo "$GH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
# Create the SSH directory and give it the right permissions
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
# Add gitlab.com as ssh known host
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
# Set commit author
@ -47,6 +48,11 @@ deploy_job:
# Push the commit
- git push
# Push to mirror
- ssh git@github.com
- git remote add mirror git@github.com:curbengh/urlhaus-filter.git
- git push mirror
after_script:
# Generate successful status badge
- mkdir -p /builds/curben/urlhaus-filter/public/