Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
data-lakes
data
Level_0
00001_LexploreMeteostation
Commits
27df7fdf
Commit
27df7fdf
authored
Oct 03, 2019
by
James Runnalls
Browse files
Update .gitlab-ci.yml
parent
7dde41e6
Pipeline
#7152
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
27df7fdf
...
...
@@ -5,6 +5,7 @@ variables:
GIT_SSL_NO_VERIFY
:
"
true"
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_LFS_SKIP_SMUDGE
:
1
IMAGE_COMMIT
:
981df09
# Need to be updated when image_build is run. Should be the first 7 digits of the commit ID from the image_build
stages
:
-
build
...
...
@@ -15,20 +16,41 @@ image_build:
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
script
:
-
docker pull renku/singleuser:0.3.4-renku0.5.0
-
CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
-
docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7
tags
:
-
image-build
only
:
changes
:
-
Dockerfile
-
requirements.txt
dot
:
stage
:
build
image
:
renku/renku-python:
latest
image
:
renku/renku-python:
v0.5.0
script
:
-
git ls-files --no-empty-directory --recurse-submodules -z | xargs -0 renku log --format dot > graph.dot
-
renku log --format dot $(git ls-files --no-empty-directory --recurse-submodules) > graph.dot
only
:
changes
:
-
Dockerfile
-
requirements.txt
artifacts
:
paths
:
-
graph.dot
environment
:
name
:
dot/$CI_COMMIT_REF_NAME
url
:
$CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_REF_NAME/raw/graph.dot?job=$CI_JOB_NAME
scripts
:
stage
:
build
image
:
$CI_REGISTRY_IMAGE:$IMAGE_COMMIT
script
:
-
sudo chown -R jovyan .git/
-
git config --global user.email "james.runnalls@eawag.ch"
-
git config --global user.name "James Runnalls"
-
git checkout master
-
git pull
-
git submodule update --recursive --remote
-
git status
\ No newline at end of file
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