Add flake check

This commit is contained in:
Smaug123
2023-10-01 16:55:13 +01:00
parent 2ffff26dcb
commit 9b71477f59
11 changed files with 156 additions and 101 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/sh
find /work -type f -name 'Dockerfile' -print0 | xargs -0 -n1 hadolint
find /work -type f -name 'Dockerfile' -print0 | xargs -0 -n1 hadolint

View File

@@ -3,5 +3,5 @@
SOURCE_DIR=$(readlink -f "$1")
OUTPUT_DIR=$(readlink -f "$2")
rm -rf "${OUTPUT_DIR:?}/*" && \
hugo --minify --source "$SOURCE_DIR" --destination "$OUTPUT_DIR"
rm -rf "${OUTPUT_DIR:?}/*" &&
hugo --minify --source "$SOURCE_DIR" --destination "$OUTPUT_DIR"

View File

@@ -7,4 +7,4 @@ cp -Rf /git/. /output || exit 1
chmod -R a+rw /output || exit 1
touch /sentinels/load.txt
touch /sentinels/load.txt