Commit 59bd63e1 authored by Anthony Sonrel's avatar Anthony Sonrel
Browse files

Update .gitlab-ci.yml

parent 0d365c53
Pipeline #210294 passed with stage
in 18 seconds
......@@ -6,9 +6,11 @@ variables:
GIT_LFS_SKIP_SMUDGE: 1
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_REMOTE_STRATEGY: "true"
PROJECT_SCRIPT: src/load_dataset.sh
stages:
- build
- update
image_build:
stage: build
......@@ -31,3 +33,39 @@ default:
- git add -A
- git commit -m 'Update utils.'
- git push
update_build:
stage: build
image: docker:stable
only:
- triggers
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:latest
run_udpate:
stage: update
image:
name: ${CI_REGISTRY_IMAGE}:latest
entrypoint: [""]
only:
- triggers
before_script:
- git config --global user.name "Anthony Sonrel"
- git config --global user.email "anthony.sonrel@uzh.ch"
- url_host=`git remote get-url origin | sed -e "s/https:\/\/gitlab-ci-token:.*@//g"`
- cd /tmp/
- git clone "https://oauth2:${CI_PUSH_TOKEN}@${url_host}"
- cd ${CI_PROJECT_NAME}
- chmod +x ./$PROJECT_SCRIPT
- git lfs install --local
script:
- cd src
- git clone https://renkulab.io/gitlab/omnibenchmark/utils.git
- cd ..
- renku save -m 'Clone submodule'
- ./$PROJECT_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