Skip to content

Commit 15fc570

Browse files
committed
Use porter from bin during CI
When we are working with Porter in CI, we should install porter into the bin/ directory and use it from there. The magefiles repository assumes porter is installed in the bin for actions like publishing the atom feed. Signed-off-by: Carolyn Van Slyck <[email protected]>
1 parent d66f008 commit 15fc570

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

magefile.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ var operatorBundleRef = fmt.Sprintf("%s/%s:%s", operatorRegistry, operatorImage,
8585
// Build a command that stops the build on if the command fails
8686
var must = shx.CommandBuilder{StopOnError: true}
8787

88-
// Publish the cross-compiled binaries.
88+
// Publish uploads the cross-compiled binaries for the plugin
8989
func Publish() {
90+
mg.SerialDeps(porter.UseBinForPorterHome, porter.EnsurePorter)
91+
92+
releases.PreparePluginForPublish(pluginName)
9093
releases.PublishPlugin(pluginName)
9194
releases.PublishPluginFeed(pluginName)
9295
}
9396

94-
// Test out publish locally, with your github forks
97+
// TestPublish tries out publish locally, with your github forks
9598
// Assumes that you forked and kept the repository name unchanged.
9699
func TestPublish(username string) {
97100
pluginRepo := fmt.Sprintf("github.com/%s/%s-plugins", username, pluginName)

0 commit comments

Comments
 (0)