Commit c431066b authored by Millicent Billette's avatar Millicent Billette

CI fast build

parent 15bed8e8
Pipeline #2200 failed with stages
in 6 minutes and 27 seconds
......@@ -7,7 +7,7 @@ variables:
DOCKER_REGISTRY: registery.duniter.org
IMAGE_NAME: geconomicus_ci
.fast-build:
fast-build:
stage: build
image: $DOCKER_REGISTRY/$IMAGE_NAME
script:
......@@ -27,7 +27,7 @@ variables:
failsafe-build:
stage: alt_build
#when: on_failure
when: on_failure
image: python:3.4
before_script:
- apt-get update
......@@ -51,7 +51,7 @@ failsafe-build:
only:
- master
.docker-for-fast-build:
docker-for-fast-build:
stage: alt_build
when: on_failure
allow_failure: true
......@@ -64,7 +64,9 @@ failsafe-build:
- echo 'FROM python:3.4' > Dockerfile
- echo 'RUN apt-get update && apt-get install -y zip inkscape imagemagick' >> Dockerfile
- echo 'RUN pip install sphinx==1.3 sphinx-intl docutils==0.12' >> Dockerfile
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD $DOCKER_REGISTRY
#- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD $DOCKER_REGISTRY
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
#- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG"
- docker build --pull -t ${DOCKER_REGISTRY}/${IMAGE_NAME} .
- docker push ${DOCKER_REGISTRY}/${IMAGE_NAME}
......
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