Skip to content

Commit

Permalink
feat: handle force-clean in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
filo87 committed Feb 20, 2025
1 parent 2e5ea0e commit a9b6ae0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ yarn projectgen
if [ $# -eq 0 ]; then
# If no arguments given, use default command
set -- /bin/run -f="/app/project-${NODE_ID}.yaml"
elif [ "$1" = "force-clean" ]; then
# Special case for force-clean command
set -- /bin/run force-clean -f="/app/project-${NODE_ID}.yaml"
elif [ "${1#-}" != "$1" ]; then
# If first arg starts with '-', prepend default command
set -- /bin/run -f="/app/project-${NODE_ID}.yaml" "$@"
Expand Down

0 comments on commit a9b6ae0

Please sign in to comment.