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
data-lakes
data
Level_0
00001_LexploreMeteostation
Commits
7c60a8a5
Commit
7c60a8a5
authored
Oct 03, 2019
by
James Runnalls
Browse files
Update .gitlab-ci.yml
parent
a9aa40ea
Pipeline
#7154
failed with stage
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7c60a8a5
# renku: v1.dev20180723
variables
:
GIT_STRATEGY
:
fetch
GIT_SSL_NO_VERIFY
:
"
true"
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_LFS_SKIP_SMUDGE
:
1
IMAGE_COMMIT
:
7dde41e
# 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
image_build
:
stage
:
build
image
:
docker:stable
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:v0.5.0
script
:
-
renku log --format dot $(git ls-files --no-empty-directory --recurse-submodules) > graph.dot
only
:
changes
:
-
Dockerfile
-
requirements.txt
artifacts
:
paths
:
-
graph.dot
before_script
:
-
apt-get update -qq
-
apt-get install -qq git
# Setup SSH deploy keys
-
'
which
ssh-agent
||
(
apt-get
install
-qq
openssh-client
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
deploy_staging
:
type
:
deploy
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
name
:
staging
url
:
https://renkulab.io/gitlab/data-lakes/
script
:
-
ssh centos@148.187.97.230
\ No newline at end of file
-
ssh centos@148.187.97.230
only
:
-
master
\ 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