Add a way to force build a container
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
6923695bb5
commit
263ead47f7
5
build.sh
5
build.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user