how do I setup a build exec action that is only ru...
# 🤖|ask-kapa
s
@microscopic-river-74022 how do I setup a build exec action that is only run once and has nothing included
m
Please stand by @salmon-scientist-57815 as I search the knowledge base. I normally take about 15 seconds or so. :wave:
---------------------- To set up a build exec action that is only run once and has nothing included, you can use the following configuration in your Garden project:
Copy code
yaml
kind: Build
type: exec
name: your-build-name
disabled: false
include: []
Here's a breakdown of the key parts: 1. Set
type: exec
to specify an exec build action Reference > Action-types > Build > exec Build (). 2. Use
include: **]
to explicitly specify an empty list of files to include. This ensures that no files are included in the action's version calculation [Reference > Action-types > Run > exec Run** (). 3. Set
disabled: false
to ensure the action is enabled Reference > Action-types > Build > exec Build (). To make sure the action is only run once, you'll need to manage this at the project level, possibly by using Garden's caching mechanisms or by setting up appropriate dependencies. Note that while this configuration will create a build action with no included files, it's important to consider whether this meets your specific use case. Typically, build actions are based on source files, so having nothing included is an unusual scenario. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
message has been deleted
2 Views