releases

package
v0.6.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ReleaseRepository = "PORTER_RELEASE_REPOSITORY"
	PackagesRemote    = "PORTER_PACKAGES_REMOTE"
)

Variables

This section is empty.

Functions

func AddChecksumExt

func AddChecksumExt(path string) (string, bool)

func AddFilesToRelease

func AddFilesToRelease(repo string, tag string, dir string)

AddFilesToRelease uploads the files in the specified directory to a GitHub release. If the release does not exist already, it will be created with empty release notes.

func AppendDataPath

func AppendDataPath(data []byte, path string) string

func BuildAll

func BuildAll(pkg string, name string, binDir string) error

func BuildClient

func BuildClient(pkg string, name string, binDir string) error

func BuildRuntime

func BuildRuntime(pkg string, name string, binDir string) error

func ConfigureGitBot

func ConfigureGitBot()

Use GITHUB_TOKEN to log the porter bot into git

func GenerateChecksum

func GenerateChecksum(data io.Reader, path string) (string, error)

func GenerateMixinFeed

func GenerateMixinFeed() error

Generate a mixin feed from any mixin versions in bin/mixins.

func GeneratePluginFeed

func GeneratePluginFeed() error

Generate a plugin feed from any plugin versions in bin/plugins.

func PrepareMixinForPublish

func PrepareMixinForPublish(mixin string)

Prepares bin directory for publishing a mixin

func PreparePluginForPublish

func PreparePluginForPublish(plugin string)

Prepares bin directory for publishing a plugin

func PublishMixin

func PublishMixin(mixin string)

Publish a mixin's binaries.

func PublishMixinFeed

func PublishMixinFeed(mixin string)

Generate an updated mixin feed and publishes it.

func PublishPlugin

func PublishPlugin(plugin string)

Publish a plugin's binaries.

func PublishPluginFeed

func PublishPluginFeed(plugin string)

Generate an updated plugin feed and publishes it.

func XBuild

func XBuild(pkg string, name string, binDir string, goos string, goarch string) error

func XBuildAll

func XBuildAll(pkg string, name string, binDir string)

Types

type GitMetadata

type GitMetadata struct {
	// Permalink is the version alias, e.g. latest, or canary
	Permalink string

	// Version is the tag or tag+commit hash
	Version string

	// Commit is the hash of the current commit
	Commit string

	// IsTaggedRelease indicates if the build is for a versioned tag
	IsTaggedRelease bool
}

func LoadMetadata

func LoadMetadata() GitMetadata

LoadMetadata populates the status of the current working copy: current version, tag and permalink

func (m GitMetadata) ShouldPublishPermalink() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL