2022-09-23 13:39:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
function get-and-unzip-website-data() {
|
2022-09-28 12:32:41 +00:00
|
|
|
filename="website.zip"
|
2022-09-29 14:22:08 +00:00
|
|
|
curl -H "Authorization: token $AUTHTOKEN" -o $SOURCEDIR/$filename $GITREPOURL
|
2022-09-28 12:32:41 +00:00
|
|
|
unzip $SOURCEDIR/$filename -d $BUILDDIR
|
2022-09-23 13:39:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function build-and-extract-website() {
|
2022-09-30 15:54:26 +00:00
|
|
|
(cd $BUILDDIR; dir=$(ls); cd $dir; lein run;)
|
2022-09-28 12:32:41 +00:00
|
|
|
# websiteartifactname=$(ls target/ | grep -Eo "*.+\.war"); unzip target/$websiteartifactname
|
2022-09-23 13:39:17 +00:00
|
|
|
}
|
2022-09-30 15:54:26 +00:00
|
|
|
|
|
|
|
function move-website-files-to-target() {
|
|
|
|
(cd $BUILDDIR; dir=$(ls); cd $dir; rsync -ru --exclude-from "/etc/exclude.pattern" --delete resources/public/* $WEBSITEROOT;)
|
|
|
|
}
|