Add a way to force build a container
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-08-15 13:11:51 -07:00
parent 6923695bb5
commit 263ead47f7
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ for file in $changed_files; do
fi
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
info "Nothing to do. Exiting..."
exit 0