Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
1048f04d
Commit
1048f04d
authored
May 30, 2018
by
eric pellegrini
Browse files
small modifications in gitlab yaml
parent
2b6bdefc
Pipeline
#3763
failed with stages
in 17 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1048f04d
...
...
@@ -5,19 +5,17 @@ stages:
# ubuntu pipeline
ci:ubuntu_xenial:
stage
:
ci
image
:
docker:stable
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables
:
DOCKER_DRIVER
:
overlay2
services
:
-
docker.ill.fr/si/dind/image:latest
before_script
:
-
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
# image: docker:stable
# variables:
# DOCKER_DRIVER: overlay2
# services:
# - docker.ill.fr/si/dind/image:latest
# before_script:
# - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
script
:
-
docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t
build
_mdanse_xenial -f ./BuildServer/Docker/Builder/Dockerfile_build .
after_script
:
-
docker logout
-
docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t
ci
_mdanse_xenial -f ./BuildServer/Docker/Builder/Dockerfile_build .
#
after_script:
#
- docker logout
allow_failure
:
false
only
:
-
triggers
...
...
@@ -27,9 +25,6 @@ ci:ubuntu_xenial:
-
develop
-
/^feature-.*$/
-
/^bugfix-.*$/
artifacts
:
paths
:
-
./*.deb
tags
:
-
docker
-
sci
...
...
@@ -38,21 +33,19 @@ ci:ubuntu_xenial:
# ubuntu pipeline
deploy:ubuntu_xenial:
stage
:
deploy
image
:
docker:stable
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables
:
DOCKER_DRIVER
:
overlay2
services
:
-
docker.ill.fr/si/dind/image:latest
before_script
:
-
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
# image: docker:stable
# variables:
# DOCKER_DRIVER: overlay2
# services:
# - docker.ill.fr/si/dind/image:latest
# before_script:
# - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
script
:
-
docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t deploy_mdanse_xenial -f ./BuildServer/Docker/Builder/Dockerfile_deploy .
-
chmod 755 ./BuildServer/Docker/upload_artefacts.sh
-
./BuildServer/Docker/upload_artefacts.sh
after_script
:
-
docker logout
#
after_script:
#
- docker logout
allow_failure
:
false
only
:
-
triggers
...
...
BuildServer/Docker/Builder/Dockerfile_deploy
View file @
1048f04d
FROM
docker.ill.fr/scientific-software/mdanse:ubuntu-
xenial
FROM
ci_mdanse_
xenial
SHELL ["/bin/bash", "-c"]
...
...
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