Skip to content
Snippets Groups Projects
Commit e6f03af1 authored by Paul Pawletta's avatar Paul Pawletta
Browse files

Update .gitlab-ci.yml

parent dc2f8f80
No related branches found
No related tags found
No related merge requests found
Pipeline #63577 failed with stage
in 2 seconds
#mirror:on-schedule: 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:
stage: build stage: build
only: only:
- schedules - schedules
tags: tags:
- shell-runner - shell-runner
variables: variables:
DOCKER_REGISTRY: https://docker-registry.ebrains.eu/ REPO_NAME: fast_tvb.git
FAST_TVB: thevirtualbrain/tvb_converter script:
script: - ORIGIN_URL=https://token:$PROJECT_ACCESS_TOKEN@gitlab.ebrains.eu/tvb/$REPO_NAME
- echo $DOCKER_REGISTRY_CLI_SECRET | docker login $DOCKER_REGISTRY -u $DOCKER_REGISTRY_USER --password-stdin - GITHUB_URL=https://github.com/BrainModes/$REPO_NAME
- docker pull $FAST_TVB - rm -rf fast_tvb
- docker tag $FAST_TVB docker-registry.ebrains.eu/$FAST_TVB - git clone $ORIGIN_URL
- docker push docker-registry.ebrains.eu/$FAST_TVB - 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/*'
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