feat: stub out a bunch of code

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-08-04 21:49:14 -04:00
1 parent 336e901c1e
commit 5d8340d305
3 files changed
+83

No files matched your search

+20
View File
@@ -6,6 +6,11 @@ import (
"github.com/dokku/dokku/plugins/common"
)
// TriggerDeployedAppRepository outputs the associated registry repository to stdout
func TriggerDeployedAppRepository(appName string) error {
// TODO
}
// TriggerInstall runs the install step for the registry plugin
func TriggerInstall() error {
if err := common.PropertySetup("registry"); err != nil {
@@ -19,3 +24,18 @@ func TriggerInstall() error {
func TriggerPostDelete(appName string) error {
return common.PropertyDestroy("registry", appName)
}
// TriggerPostReleaseBuilder pushes the image to the remote registry
func TriggerPostReleaseBuilder(appName string) error {
if !isPushEnabled(appName) {
return nil
}
common.LogInfo1("Pushing image to registry")
imageTag, err := incrementTagVersion(appName)
if err != nil {
return err
}
return pushToRegistry(appName, imageTag)
}