Commit 161b9153 authored by Slava Ostroukh's avatar Slava Ostroukh

remove mirror stage of CI

Mirroring is done with Gitlab's built-in tools now.

Closes #27
parent 20e46b11
Pipeline #41179 passed with stages
in 73 minutes and 12 seconds
......@@ -3,28 +3,10 @@ image:
entrypoint: [""]
stages:
- mirror
- build_base
- build
- build_singularity
mirror repository:
image: $CI_REGISTRY_IMAGE:base
stage: mirror
allow_failure: true
variables:
REPO: "git@github.com:quantum-tinkerer/research-docker.git"
before_script:
- mkdir ~/.ssh && chmod 700 ~/.ssh
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- echo "$DEPLOY_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
after_script:
- rm -rf ~/.ssh
script:
- ORIGIN_URL=$(git config --get remote.origin.url)
- cd $(mktemp -d); git clone --bare $ORIGIN_URL .
- git push --mirror $REPO
.build base image:
stage: build_base
before_script:
......
Markdown is supported
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