Loading publish_on_pages.sh +3 −6 Original line number Diff line number Diff line Loading @@ -4,8 +4,6 @@ DOCKER_IMAGE=python:3.9-slim-bullseye echo "\n------ Checking for 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 "PROJECT NAME:" $3 echo "TAG NAME:" $4 Loading @@ -28,8 +26,6 @@ mkdir -p "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" #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 ------" zip -r "content.zip" "public" Loading @@ -37,8 +33,9 @@ mv "content.zip" "public/" exit 0 #Parameters #updateIndex.py #$CI_PAGES_URL #${CI_PROJECT_NAME} #$CI_PROJECT_NAME #$CI_COMMIT_REF_NAME #index.htm #index.html Loading
publish_on_pages.sh +3 −6 Original line number Diff line number Diff line Loading @@ -4,8 +4,6 @@ DOCKER_IMAGE=python:3.9-slim-bullseye echo "\n------ Checking for 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 "PROJECT NAME:" $3 echo "TAG NAME:" $4 Loading @@ -28,8 +26,6 @@ mkdir -p "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" #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 ------" zip -r "content.zip" "public" Loading @@ -37,8 +33,9 @@ mv "content.zip" "public/" exit 0 #Parameters #updateIndex.py #$CI_PAGES_URL #${CI_PROJECT_NAME} #$CI_PROJECT_NAME #$CI_COMMIT_REF_NAME #index.htm #index.html