Skip to content

Running scripts

Igor Petruk edited this page Oct 31, 2019 · 3 revisions

Normal run

Running scripts as normal should work as expected.

$ chmod +x script.hs
$ ./script.hs
Hello, Haskell!

The second run is fast, because all required artifacts are already built. If you change or touch the script, rebuild will be triggered.

Control build trigger

Sometimes it is desired to control the cache use during active development. For this you can use the SCRIPTISTO_BUILD environment variable.

Value Description
<unset> Normal run. Fully use cached binaries, if available.
source Always run docker build (if configured) and build_cmd. Same as if you changed the source file
full Always run docker build --no-cache (if configured), build_once_cmd and build_cmd. Same as you have NEVER build the script before
Clone this wiki locally