The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

Commit 2b6bdefc authored by eric pellegrini's avatar eric pellegrini
Browse files

Added script for uploading artefacts

parent 2ceb3de5
Pipeline #3762 passed with stages
in 14 minutes and 37 seconds
...@@ -2,7 +2,7 @@ stages: ...@@ -2,7 +2,7 @@ stages:
- ci - ci
- deploy - deploy
# osx pipeline # ubuntu pipeline
ci:ubuntu_xenial: ci:ubuntu_xenial:
stage: ci stage: ci
image: docker:stable image: docker:stable
...@@ -15,9 +15,42 @@ ci:ubuntu_xenial: ...@@ -15,9 +15,42 @@ ci:ubuntu_xenial:
before_script: before_script:
- docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY} - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
script: script:
- docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t build_xenial -f ./BuildServer/Docker/Builder/Dockerfile_deploy . - docker build --force-rm --build-arg MDANSE_GIT_COMMIT=${CI_COMMIT_SHA} -t build_mdanse_xenial -f ./BuildServer/Docker/Builder/Dockerfile_build .
- docker cp build_xenial:/mdanse/BuildServer/*.deb . after_script:
- docker rmi build_xenial - docker logout
allow_failure: false
only:
- triggers
- tags
- release
- hotfix
- develop
- /^feature-.*$/
- /^bugfix-.*$/
artifacts:
paths:
- ./*.deb
tags:
- docker
- sci
- ubuntu
# 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}
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: after_script:
- docker logout - docker logout
allow_failure: false allow_failure: false
......
docker run --rm -iv${PWD}:/artifacts/ deploy_mdanse_xenial << COMMANDS
chown $(id -u):$(id -g) /mdanse/BuildServer/*.deb
chmod 755 /mdanse/BuildServer/*.deb
cp -a /mdanse/BuildServer/*.deb /artifacts/.
COMMANDS
...@@ -8,4 +8,4 @@ export MDANSE_TEMPORARY_INSTALLATION_DIR=${MDANSE_SOURCE_DIR}/BuildServer/Unix/B ...@@ -8,4 +8,4 @@ export MDANSE_TEMPORARY_INSTALLATION_DIR=${MDANSE_SOURCE_DIR}/BuildServer/Unix/B
export PYTHONPATH=${MDANSE_TEMPORARY_INSTALLATION_DIR}/lib/python2.7/site-packages/:${PYTHONPATH} export PYTHONPATH=${MDANSE_TEMPORARY_INSTALLATION_DIR}/lib/python2.7/site-packages/:${PYTHONPATH}
export RED="\\033[1;31m" export RED="\\033[1;31m"
export BLUE="\\033[1;34m" export BLUE="\\033[1;34m"
export NORMAL="\\033[0m" export NORMAL="\\033[0m"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment