Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deployer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
deployer
Commits
68477183
Commit
68477183
authored
Oct 05, 2023
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www.ducc.it: more robust build
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
188f087b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
scripts/www.ducc.it
scripts/www.ducc.it
+9
-3
No files found.
scripts/www.ducc.it
View file @
68477183
...
@@ -13,12 +13,18 @@ repo="$(git_clone_repo "${NAME}" "${REPO_URL}")"
...
@@ -13,12 +13,18 @@ repo="$(git_clone_repo "${NAME}" "${REPO_URL}")"
if
git_needs_update
"
${
NAME
}
"
;
then
if
git_needs_update
"
${
NAME
}
"
;
then
# Build the repository
# Build the repository
cp
-r
"
${
repo
}
"
repo
tempdir
=
$(
mktemp
-d
-t
ducc.it.XXXXXXX
)
make
-C
repo
trap
'rm -rf "$tempdir"'
EXIT
cp
-r
"
${
repo
}
"
"
$tempdir
"
pushd
"
$tempdir
"
/repo
make
# Create a new deploy
# Create a new deploy
deploy
=
"
$(
deploy_new
"
${
NAME
}
"
)
"
deploy
=
"
$(
deploy_new
"
${
NAME
}
"
)
"
cp
-r
repo/build/html/
*
"
${
deploy
}
"
cp
-r
build/html/
*
"
${
deploy
}
"
popd
git_save_revision
"
${
NAME
}
"
"
${
deploy
}
"
git_save_revision
"
${
NAME
}
"
"
${
deploy
}
"
deploy_switch
"
${
NAME
}
"
"
${
deploy
}
"
deploy_switch
"
${
NAME
}
"
"
${
deploy
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment