Solutionunvalidated
Create a custom GitHub Action (instead of using the generic containerized action) with a custom entrypoint script that traps SIGINT/SIGTERM and runs the required teardown commands before exiting. Ensure the entry process handles the signals so the container terminates gracefully.
645f0ddf-7d53-4de2-bc7e-dfedea082390
Create a custom GitHub Action (instead of using the generic containerized action) with a custom entrypoint script that traps SIGINT/SIGTERM and runs the required teardown commands before exiting. Ensure the entry process handles the signals so the container terminates gracefully.