feat: add ability to manage stacks on an app or global level
The previous lever for manipulating this was the DOKKU_IMAGE environment variable. While this is all well and good, it only works for CNB and is yet another `DOKKU_*` environment variable that need not exist. While this does not add support for manipulating the CNB stack just yet, the groundwork is set for the future. Closes #4306
This commit is contained in:
1 parent
4c74e0dfba
commit
bad90b2b1d
11 files changed
+134
-8
No files matched your search
@@ -138,3 +138,9 @@ func CommandSet(appName string, buildpack string, index int) error {
|
||||
|
||||
return common.PropertyListSet("buildpacks", appName, "buildpacks", buildpack, index)
|
||||
}
|
||||
|
||||
// CommandStacksSet implements buildpacks:stacks-set
|
||||
func CommandStacksSet(appName string, stack string) error {
|
||||
common.CommandPropertySet("buildpacks", appName, "stack", stack, DefaultProperties, GlobalProperties)
|
||||
return common.PlugnTrigger("post-stack-set", []string{appName, stack}...)
|
||||
}
|
||||
Reference in new issue
Block a user