diff --git a/mage/setup/mixins.go b/mage/setup/mixins.go index 3c3b0cc..44433ef 100644 --- a/mage/setup/mixins.go +++ b/mage/setup/mixins.go @@ -25,6 +25,11 @@ func InstallMixins() error { for _, mixin := range mixins { mixin := mixin errG.Go(func() error { + for i := 0; i < 3; i++ { + if err := porter.EnsureMixin(mixin); err == nil { + return nil + } + } return porter.EnsureMixin(mixin) }) } diff --git a/magefile.go b/magefile.go index 68f6876..47afc1d 100644 --- a/magefile.go +++ b/magefile.go @@ -116,7 +116,11 @@ func PublishExample(name string) error { } fmt.Printf("Publishing example bundle: %s\n", name) - return shx.Command("porter", "publish", registryFlag).CollapseArgs().In(name).RunV() + err = shx.Command("porter", "publish", registryFlag).CollapseArgs().In(name).RunV() + mgx.Must(err) + + // Publish with latest tag + return shx.Command("porter", "publish", "--tag", "latest").CollapseArgs().In(name).RunV() } // SetupDCO configures your git repository to automatically sign your commits