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 tags found
No related merge requests found
Pipeline #64432 failed with stage
in 2 seconds
#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/*'
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