ps aux
and ls
in the example below), and the ones that go after it are the "after" hooks (ls -la .terraform
):.spacelift/config.yml
file..env
file in the project root. In this example, we're using two hooks - one before the initialization and one after the initialization phase. We use the first command to retrieve a secret from external storage and put it in the environment to be used by the initialization phase. We use the second command to persist the secret to the environment so that subsequent steps can access it:.spacelift/config.yml
file..spacelift/config.yml
file.