diff options
author | heqnx <root@heqnx.com> | 2025-07-12 18:42:53 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-12 18:42:53 +0300 |
commit | f2e34a36504d032d5888d79855ab69d1b468b4a2 (patch) | |
tree | 27e162c9c123e4350bf06168a0f348177b7d23d1 /.gitlab-ci.yml | |
parent | 16ece0e41e2384958bf4f44c048309a7f60dff55 (diff) | |
download | ansible-active-directory-range-f2e34a36504d032d5888d79855ab69d1b468b4a2.tar.gz ansible-active-directory-range-f2e34a36504d032d5888d79855ab69d1b468b4a2.zip |
added gitlab-ci.yml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..bd46c9e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +stages: + - mirror + +mirror-from-cgit: + stage: mirror + image: ubuntu:20.04 + before_script: + - apt-get update -y && apt-get install -y git + - git config --global user.name "CI" + - git config --global user.email "ci@gitlab.com" + script: + - git clone --mirror "$SOURCE_REPO" temp_repo + - cd temp_repo + - TARGET_REPO="https://oauth2:$GITLAB_TOKEN@$REPO_NAME" + - git remote set-url origin "$TARGET_REPO" + - git push --prune --mirror + only: + - schedules |