Open marschro opened 7 months ago
I don't consider this is a bug. Each CMD
is completely standalone. That would require a new ENV section.
Thanks, @michael-o - I guessed that already. An ENV section for the future would probably be nice. For now it works.
I would also be interested, how other people solve this. Another way to do that is, a script, that is rendered with the variables, by Bastille, then is executed, and right after deleted... as one does not want to values to be somewhere readable in a file on the server. Or would you say, that this is fine, or what would be best practice here?
I guess I can close this then - or is that something to keep? Kind regards, Martin
A script is usually the way to go. You can check something like the wordpress template as an example.
A script is usually the way to go. You can check something like the wordpress template as an example.
Hi @yaazkal - yes. I had that also first. But that means that I have to write the secure credentials into that script file. Alternatively, could RENDER the credentials, provided by the CI/CD system to that script file. But... then I still have the credentials written to a file in the system what I want to avoid. I could then after starting the system, delete the file again... but that all feels like "von hinten durch die Brust".
Does anyone know if I could at least write multiline in the Bastillefile ? like so...
CMD do this \
do one thing \
and then another \
and so on
@marschro ...durch die Brust in die Anus
[MANDATORY] Describe the bug [MANDATORY] I have the following Bastillefile:
... which is working but is not readable and not well maintainable as along long one-liner (there are much more variables to set in my real project)
[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)[MANDATORY] How did you install bastille? (port/pkg/git)
[optional] Steps to reproduce?
[optional] Expected behavior
[optional] Screenshots
[optional] Additional context