Loading .gitlab-ci.yml +2 −12 Original line number Original line Diff line number Diff line Loading @@ -15,7 +15,6 @@ variables: generate_temp_docx: generate_temp_docx: stage: preprocessing stage: preprocessing image: python:3.10-slim before_script: before_script: - pip3 install python-docx #install dependances - pip3 install python-docx #install dependances script: script: Loading @@ -28,10 +27,6 @@ generate_temp_docx: images_extraction: images_extraction: stage: preprocessing stage: preprocessing image: name: ubuntu:latest before_script: - apt-get update && apt-get install pandoc -y && apt-get install imagemagick -y && apt-get --no-install-recommends install libreoffice -y #install tools script: script: - pandoc --extract-media ./ -f docx -t html -s API.docx -o API.html - pandoc --extract-media ./ -f docx -t html -s API.docx -o API.html after_script: after_script: Loading @@ -44,21 +39,17 @@ images_extraction: html: html: stage: build_html stage: build_html image: name: pandoc/latex:3.1.13-alpine entrypoint: ["sh"] before_script: before_script: - docker --version - docker pull pandoc/latex:3.1.13-alpine - docker run -it -v ./:/data --entrypoint "/bin/sh" pandoc/latex:3.1.13-alpine script: script: - pandoc --extract-media ./ -f docx -t html -L filter_1.lua -L filter_2.lua --css=styling.css --css=API.css -s temp.docx -o API.html --toc --toc-depth 4 --template=template.html - pandoc --extract-media ./ -f docx -t html -L filter_1.lua -L filter_2.lua --css=styling.css --css=API.css -s temp.docx -o API.html --toc --toc-depth 4 --template=template.html artifacts: artifacts: paths: paths: - API.html - API.html docx: docx: stage: build_docx stage: build_docx image: python:3.10-slim dependencies: dependencies: - "html" - "html" before_script: before_script: Loading @@ -73,7 +64,6 @@ docx: pages: pages: stage: deploy stage: deploy image: bitnami/git dependencies: dependencies: - "docx" - "docx" script: script: Loading Loading
.gitlab-ci.yml +2 −12 Original line number Original line Diff line number Diff line Loading @@ -15,7 +15,6 @@ variables: generate_temp_docx: generate_temp_docx: stage: preprocessing stage: preprocessing image: python:3.10-slim before_script: before_script: - pip3 install python-docx #install dependances - pip3 install python-docx #install dependances script: script: Loading @@ -28,10 +27,6 @@ generate_temp_docx: images_extraction: images_extraction: stage: preprocessing stage: preprocessing image: name: ubuntu:latest before_script: - apt-get update && apt-get install pandoc -y && apt-get install imagemagick -y && apt-get --no-install-recommends install libreoffice -y #install tools script: script: - pandoc --extract-media ./ -f docx -t html -s API.docx -o API.html - pandoc --extract-media ./ -f docx -t html -s API.docx -o API.html after_script: after_script: Loading @@ -44,21 +39,17 @@ images_extraction: html: html: stage: build_html stage: build_html image: name: pandoc/latex:3.1.13-alpine entrypoint: ["sh"] before_script: before_script: - docker --version - docker pull pandoc/latex:3.1.13-alpine - docker run -it -v ./:/data --entrypoint "/bin/sh" pandoc/latex:3.1.13-alpine script: script: - pandoc --extract-media ./ -f docx -t html -L filter_1.lua -L filter_2.lua --css=styling.css --css=API.css -s temp.docx -o API.html --toc --toc-depth 4 --template=template.html - pandoc --extract-media ./ -f docx -t html -L filter_1.lua -L filter_2.lua --css=styling.css --css=API.css -s temp.docx -o API.html --toc --toc-depth 4 --template=template.html artifacts: artifacts: paths: paths: - API.html - API.html docx: docx: stage: build_docx stage: build_docx image: python:3.10-slim dependencies: dependencies: - "html" - "html" before_script: before_script: Loading @@ -73,7 +64,6 @@ docx: pages: pages: stage: deploy stage: deploy image: bitnami/git dependencies: dependencies: - "docx" - "docx" script: script: Loading