support for a post-entrypoint script
All checks were successful
App Image CI / Build app image (push) Successful in -1m24s
Docker Image CI / Build build images (arch) (push) Successful in -1s
Docker Image CI / Build build images (artix) (push) Successful in -25s
NPM Audit Check / Check NPM audit (push) Successful in -2m10s

This commit is contained in:
2025-10-28 17:17:34 -05:00
parent 3b5ff4cf41
commit 9fe86c4114

View File

@@ -27,6 +27,12 @@ applyPatch() {
fi
}
postEntrypoint() {
if [ -n "$POST" ] && [ -x post-entrypoint.sh ] ; then
./post-entrypoint.sh
fi
}
changeDir() {
if [ -n "$CD" ]
then
@@ -41,10 +47,9 @@ if [ ! -d "$DIR" ]; then
fi
cd "$DIR" && \
touch archery && \
ls -al && \
checkoutCommit && \
applyPatch && \
sudo pacman -Syu --noconfirm --noprogressbar &&\
makepkg -smf --noconfirm --noprogressbar --skippgpcheck --noarchive && \
ls -al
postEntrypoint
exit $?;