Commit 7963e1b8 authored by Ulf Seltmann's avatar Ulf Seltmann
Browse files

added github mirror example

parent f2fa1975
Pipeline #250 passed with stage
in 19 seconds
......@@ -22,3 +22,19 @@ github_mirror:
tags:
- docker
github_mirror:
stage: mirror
image:
name: alpine/git
entrypoint: [ "/bin/sh", "-c" ]
variables:
GIT_STRATEGY: clone
GIT_CHECKOUT: "false"
script: |
cd /tmp
git clone --mirror ${CI_REPOSITORY_URL} project
cd project
git remote add github https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/ubleipzig/git-test.git
git push --mirror github
tags:
- docker
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment