Loading .gitlab-ci.yml +9 −6 Original line number Diff line number Diff line Loading @@ -75,14 +75,16 @@ saving_script: docx: stage: build needs: - "saving_script" - "images_extraction" before_script: - cp public/API.css public/official/ script: - docker run -u $(id -u):$(id -g) --entrypoint "/bin/sh" -v "./:/data" serafinopirronitto/test-image:v4 -c "cd data && python3 html_to_docx.py ./API && python3 postprocessing.py html_to_docx_output.docx ./media" - docker run -u $(id -u):$(id -g) --entrypoint "/bin/sh" -v "./:/data" serafinopirronitto/test-image:v4 -c "cd data && python3 html_to_docx.py ./public/official && python3 postprocessing.py html_to_docx_output.docx ./media" artifacts: paths: - html_to_docx_output_fixed.docx rules: - changes: - public/official/*.html pages: stage: deploy Loading @@ -92,9 +94,10 @@ pages: - "generate_temp_docx" - "official_html" script: #copy into public everything it needs to make the page work - cp -r ./API public/editing/ #editing_html files - cp ./API/*.html public/editing/ #editing_html files - cp -r ./API/dist/ public/editing/ #javascript files - cp -r ./API/media/ public/editing/ #images - cp API.css background_highlight.css public/ #css files - cp -r dist/ public/editing/ #javascript files - unzip official.zip -d public/official/ - echo "The site will be deployed to $CI_PAGES_URL" artifacts: Loading Loading
.gitlab-ci.yml +9 −6 Original line number Diff line number Diff line Loading @@ -75,14 +75,16 @@ saving_script: docx: stage: build needs: - "saving_script" - "images_extraction" before_script: - cp public/API.css public/official/ script: - docker run -u $(id -u):$(id -g) --entrypoint "/bin/sh" -v "./:/data" serafinopirronitto/test-image:v4 -c "cd data && python3 html_to_docx.py ./API && python3 postprocessing.py html_to_docx_output.docx ./media" - docker run -u $(id -u):$(id -g) --entrypoint "/bin/sh" -v "./:/data" serafinopirronitto/test-image:v4 -c "cd data && python3 html_to_docx.py ./public/official && python3 postprocessing.py html_to_docx_output.docx ./media" artifacts: paths: - html_to_docx_output_fixed.docx rules: - changes: - public/official/*.html pages: stage: deploy Loading @@ -92,9 +94,10 @@ pages: - "generate_temp_docx" - "official_html" script: #copy into public everything it needs to make the page work - cp -r ./API public/editing/ #editing_html files - cp ./API/*.html public/editing/ #editing_html files - cp -r ./API/dist/ public/editing/ #javascript files - cp -r ./API/media/ public/editing/ #images - cp API.css background_highlight.css public/ #css files - cp -r dist/ public/editing/ #javascript files - unzip official.zip -d public/official/ - echo "The site will be deployed to $CI_PAGES_URL" artifacts: Loading