You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, especially when using earthly:dind images, a target must be executed with the -P flag to escalate privileges. The current design of the CI system is restricted to treating all targets the same, meaning it's not currently possible to arbitrarily pass additional flags to a specific target. This issue proposes two potential solutions:
Implement a new subcommand in the CLI that determines if a specific target is using the earthly:dind image. This will be run before executing the target and used to conditionally pass the -P flag.
Implement support for a "special comment" within a target that the CI scans for and parses. This comment can have multiple key=value pairs which can configure the way the target is executed.
For example: # ci: privileged=true
Add a special _priv suffix to targets (i.e., check_priv) which executes the target in privileged mode.
The second option is preferred for flexibility but requires a lot more work to implement.
The text was updated successfully, but these errors were encountered:
In some cases, especially when using
earthly:dind
images, a target must be executed with the-P
flag to escalate privileges. The current design of the CI system is restricted to treating all targets the same, meaning it's not currently possible to arbitrarily pass additional flags to a specific target. This issue proposes two potential solutions:earthly:dind
image. This will be run before executing the target and used to conditionally pass the-P
flag.# ci: privileged=true
_priv
suffix to targets (i.e.,check_priv
) which executes the target in privileged mode.The second option is preferred for flexibility but requires a lot more work to implement.
The text was updated successfully, but these errors were encountered: