Skip to content

Commit

Permalink
Merge pull request #264 from carolynvs/run-porter-from-bin
Browse files Browse the repository at this point in the history
Use porter from bin during CI
  • Loading branch information
carolynvs authored Apr 13, 2023
2 parents d66f008 + 15fc570 commit 6293f7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,16 @@ var operatorBundleRef = fmt.Sprintf("%s/%s:%s", operatorRegistry, operatorImage,
// Build a command that stops the build on if the command fails
var must = shx.CommandBuilder{StopOnError: true}

// Publish the cross-compiled binaries.
// Publish uploads the cross-compiled binaries for the plugin
func Publish() {
mg.SerialDeps(porter.UseBinForPorterHome, porter.EnsurePorter)

releases.PreparePluginForPublish(pluginName)
releases.PublishPlugin(pluginName)
releases.PublishPluginFeed(pluginName)
}

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

0 comments on commit 6293f7a

Please sign in to comment.