c4k-website/infrastructure/c4k-website-build/image/resources/functions.sh
erik 915b97b63f Cleanup
Update readme and tryItOut.
2022-09-29 16:22:08 +02:00

12 lines
437 B
Bash

#!/bin/bash
function get-and-unzip-website-data() {
filename="website.zip"
curl -H "Authorization: token $AUTHTOKEN" -o $SOURCEDIR/$filename $GITREPOURL
unzip $SOURCEDIR/$filename -d $BUILDDIR
}
function build-and-extract-website() {
(cd $BUILDDIR; dir=$(ls); cd $dir; timeout -s SIGKILL 35s lein ring server-headless;)
# websiteartifactname=$(ls target/ | grep -Eo "*.+\.war"); unzip target/$websiteartifactname
}