Add a way to force build a container
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Elara 2023-08-15 13:11:51 -07:00
parent 6923695bb5
commit 263ead47f7

View File

@ -33,6 +33,11 @@ for file in $changed_files; do
fi fi
done done
# Check if FORCE_BUILD is set and add the directory inside to changed_directories if it is
if [ -n "${FORCE_BUILD}" ]; then
changed_directories["${FORCE_BUILD}"]=1
fi
if [[ "${#changed_directories[@]}" == 0 ]]; then if [[ "${#changed_directories[@]}" == 0 ]]; then
info "Nothing to do. Exiting..." info "Nothing to do. Exiting..."
exit 0 exit 0