Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anthony Sonrel
data-test-sched
Commits
59bd63e1
Commit
59bd63e1
authored
Jun 22, 2021
by
Anthony Sonrel
Browse files
Update .gitlab-ci.yml
parent
0d365c53
Pipeline
#210294
passed with stage
in 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
59bd63e1
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment