Commit 116c025e authored by Millicent Billette's avatar Millicent Billette

add zip deps and cash build needs in docker dedicated CI image when needed

parent c8944900
Pipeline #1180 failed with stages
in 23 seconds
stages:
- build
- env-build
- publish
variables:
DOCKER_REGISTRY: registery.duniter.org
IMAGE_NAME: GeconomicusCI
build:
stage: build
when: on_failure
image: $DOCKER_REGISTRY/$IMAGE_NAME
script:
#- ./update_translation.sh
- ./build.sh
- mv ./rst/build/html public
- ./build_en_US.sh
- mv ./rst/build/html public/en
after_script:
- cat /tmp/sphinx-err-*.log || true
artifacts:
paths:
- public
expire_in: 10 minutes
only:
- master
alt-build:
stage: env-build
when: on_failure
image: python:3.4
before_script:
- apt-get update
- apt-get install -y inkscape imagemagick
- apt-get install -y zip inkscape imagemagick
- pip install sphinx==1.3
- pip install sphinx-intl
- pip install docutils==0.12
- identify -list font || true
#- identify -list font || true
script:
#- ./update_translation.sh
- ./build.sh
......@@ -27,6 +52,21 @@ build:
only:
- master
docker-build:
stage: env-build
when: on_failure
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD $DOCKER_REGISTRY
script:
- 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 build --pull -t ${DOCKER_REGISTRY}/${IMAGE_NAME} .
- docker push ${DOCKER_REGISTRY}/${IMAGE_NAME}
pages:
stage: publish
script:
......
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