kind: pipeline type: docker name: mirror-to-github steps: - name: push-to-github image: alpine:latest environment: SSH_PRIVATE_KEY: from_secret: SSH_PRIVATE_KEY commands: - apk add --no-cache git openssh - 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