From e6f03af151fc5c47762f5b38bf834d4bde5728ea Mon Sep 17 00:00:00 2001 From: Paul Pawletta <paul.pawletta@charite.de> Date: Fri, 9 Apr 2021 10:31:15 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 39 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ff04c78..5b8f68a 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/*' -- GitLab