diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ff04c7832a712350880dbf488059557f6b83e6f2..5b8f68a9eb1257143eedee9c9e10ffeaadddf041 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,33 +1,18 @@ -#mirror:on-schedule: -# stage: build -# only: -# - schedules -# tags: -# - shell-runner -# variables: -# REPO_NAME: fast_tvb.git -# script: -# - ORIGIN_URL=https://token:$PROJECT_ACCESS_TOKEN@gitlab.ebrains.eu/tvb/$REPO_NAME -# - GITHUB_URL=https://github.com/BrainModes/$REPO_NAME -# - rm -rf fast_tvb -# - git clone $ORIGIN_URL -# - cd fast_tvb -# - git remote add github $GITHUB_URL -# - git fetch --all -# - git push --force origin 'refs/remotes/github/*:refs/heads/*' -# - git push --force origin 'refs/tags/*:refs/tags/*' - -mirrorDocker:on-schedule: +mirror:on-schedule: stage: build only: - schedules tags: - shell-runner variables: - DOCKER_REGISTRY: https://docker-registry.ebrains.eu/ - FAST_TVB: thevirtualbrain/tvb_converter - script: - - echo $DOCKER_REGISTRY_CLI_SECRET | docker login $DOCKER_REGISTRY -u $DOCKER_REGISTRY_USER --password-stdin - - docker pull $FAST_TVB - - docker tag $FAST_TVB docker-registry.ebrains.eu/$FAST_TVB - - docker push docker-registry.ebrains.eu/$FAST_TVB + REPO_NAME: fast_tvb.git + script: + - ORIGIN_URL=https://token:$PROJECT_ACCESS_TOKEN@gitlab.ebrains.eu/tvb/$REPO_NAME + - GITHUB_URL=https://github.com/BrainModes/$REPO_NAME + - rm -rf fast_tvb + - git clone $ORIGIN_URL + - cd fast_tvb + - git remote add github $GITHUB_URL + - git fetch --all + - git push --force origin 'refs/remotes/github/*:refs/heads/*' + - git push --force origin 'refs/tags/*:refs/tags/*'