Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Specification Tools
Scripts
Commits
19ee1319
Commit
19ee1319
authored
1 year ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Clean up
parent
1757192b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
publish_on_pages.sh
+3
-6
3 additions, 6 deletions
publish_on_pages.sh
with
3 additions
and
6 deletions
publish_on_pages.sh
+
3
−
6
View file @
19ee1319
...
@@ -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.htm
l
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment