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
coding_pandas
LSTMFinance
Commits
bd7027c2
Commit
bd7027c2
authored
Jun 21, 2018
by
Nathanael Perraudin
Browse files
update gitlabci
parent
28b7b704
Pipeline
#62
passed with stages
in 7 minutes and 21 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
bd7027c2
# renku: v1.dev20181906
stages
:
-
build
-
build
-
package
-
deploy
image_build
:
stage
:
build
image
:
python:3.6
...
...
@@ -13,9 +13,6 @@ image_build:
-
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
dot
:
stage
:
build
image
:
renku/renku-python:latest
...
...
@@ -27,3 +24,27 @@ 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
package_submission
:
stage
:
package
image
:
python:3.6
before_script
:
-
python -V
-
pip install pipenv
-
apt-get update && apt-get install -y git-core
-
pipenv install --skip-lock
-
pipenv run pip freeze
script
:
-
mkdir -p output
-
echo $CI_JOB_ID > output/JOB_ID
-
pipenv run papermill notebooks/02_model.ipynb notebooks/02_model_run.ipynb -p features_pickle_file_path data/outputs/features.pkl -p pred_template_file_path templates/prediction_template.csv -p pred_output_file_path output/submission.csv
artifacts
:
paths
:
-
output/*
submit_prediction
:
stage
:
deploy
image
:
buildpack-deps:curl
script
:
-
SEND_JOB_ID=$(cat output/JOB_ID)
-
echo $SEND_JOB_ID
-
echo $CI_PROJECT_ID
-
'
curl
-v
-f
-X
POST
"https://scoreboard.internal.renku.ch/principal/submit"
-d
"{\"project_id\":
$CI_PROJECT_ID,
\"job_id\":
$SEND_JOB_ID}"'
\ 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