Commit 381e0046 authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix when deploying after having peformed ci

parent 1048f04d
Pipeline #3764 failed with stages
in 17 minutes and 21 seconds
......@@ -5,17 +5,8 @@ stages:
# ubuntu pipeline
ci:ubuntu_xenial:
stage: ci
# 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 ci_mdanse_xenial -f ./BuildServer/Docker/Builder/Dockerfile_build .
# after_script:
# - docker logout
allow_failure: false
only:
- triggers
......@@ -33,19 +24,10 @@ ci:ubuntu_xenial:
# ubuntu pipeline
deploy:ubuntu_xenial:
stage: deploy
# 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
allow_failure: false
only:
- triggers
......
......@@ -10,9 +10,5 @@ WORKDIR mdanse
RUN git checkout ${MDANSE_GIT_COMMIT}
RUN source ./BuildServer/Unix/definitions_debian.sh ; source ./BuildServer/Unix/version.sh ; ./BuildServer/Unix/build.sh
RUN source ./BuildServer/Unix/definitions_debian.sh ; source ./BuildServer/Unix/version.sh ; ./BuildServer/Unix/tests.sh
RUN source ./BuildServer/Unix/definitions_debian.sh ; source ./BuildServer/Unix/version.sh ; ./BuildServer/Unix/deploy_debian.sh
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