Skip to content
Snippets Groups Projects
Commit 19ee1319 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Clean up

parent 1757192b
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,6 @@ DOCKER_IMAGE=python:3.9-slim-bullseye ...@@ -4,8 +4,6 @@ DOCKER_IMAGE=python:3.9-slim-bullseye
echo "\n------ Checking for docker image --------" echo "\n------ Checking for docker image --------"
docker pull "$DOCKER_IMAGE" docker pull "$DOCKER_IMAGE"
#HOST_URL=$(echo $1 | cut -d'/' -f 1-3)
#PROJECT_NAME=$(echo $1 | cut -d'/' -f 5- | cut -d'.' -f 1)
echo "Pages URL:" $2 echo "Pages URL:" $2
echo "PROJECT NAME:" $3 echo "PROJECT NAME:" $3
echo "TAG NAME:" $4 echo "TAG NAME:" $4
...@@ -28,8 +26,6 @@ mkdir -p "public/$4" ...@@ -28,8 +26,6 @@ mkdir -p "public/$4"
cp -r -f "$3_$4.docx" public/$4 cp -r -f "$3_$4.docx" public/$4
docker run --rm -v $(pwd):/tmp -w /tmp "$DOCKER_IMAGE" pip install bs4 && python3 $1 "$3_$4" "$4/$3_$4.docx" "$5" docker run --rm -v $(pwd):/tmp -w /tmp "$DOCKER_IMAGE" pip install bs4 && python3 $1 "$3_$4" "$4/$3_$4.docx" "$5"
#echo "<a href="${CI_COMMIT_REF_NAME}/${CI_PROJECT_NAME}_${CI_COMMIT_TAG}.docx" target="_blank">$CI_COMMIT_REF_NAME</a>" >> "public/index.html"
echo "------ Zip the content and publish the zip again ------" echo "------ Zip the content and publish the zip again ------"
zip -r "content.zip" "public" zip -r "content.zip" "public"
...@@ -37,8 +33,9 @@ mv "content.zip" "public/" ...@@ -37,8 +33,9 @@ mv "content.zip" "public/"
exit 0 exit 0
#Parameters
#updateIndex.py #updateIndex.py
#$CI_PAGES_URL #$CI_PAGES_URL
#${CI_PROJECT_NAME} #$CI_PROJECT_NAME
#$CI_COMMIT_REF_NAME #$CI_COMMIT_REF_NAME
#index.htm #index.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment