feat(script): add snippet support for script module (#124)

This commit is contained in:
xynydev 2024-03-17 12:14:23 +02:00
parent 29649646e3
commit a97326fb98
3 changed files with 15 additions and 6 deletions

View file

@ -1,6 +1,8 @@
# `script`
The `script` module can be used to run arbitrary scripts at image build time that take no or minimal external configuration (in the form of command line arguments).
The `script` module can be used to run arbitrary bash snippets and scripts at image build time. This is intended for running commands that need no YAML configuration.
The snippets, which are run in a bash subshell, are declared under `snippets:`.
The scripts, which are run from the `config/scripts` directory, are declared under `scripts:`.
## Creating a Script