c4k-website/infrastructure/c4k-website-build/image/resources/entrypoint.sh
erik 2b2ca8dae7 Add optional script execution in build container
The script file must exist in the root of the specified gitea-repo.
You also need to specify (and calculate) a sha256sum output
for that file. This needs to be added as KV pair to
the respective collection in :websites.
2022-11-11 13:18:49 +01:00

15 lines
317 B
Bash
Executable file

#!/bin/bash
mkdir $BUILDDIR
mkdir $SOURCEDIR
source /usr/local/bin/functions.sh
echo "Downloading website"
get-and-unzip-website-data
echo "Executing Custom Scripts, if applicable"
execute-scripts-when-existing
echo "Building website"
build-and-extract-website
echo "Moving files"
move-website-files-to-target