Documentation ¶
Index ¶
- func CheckoutReleaseBranch(branchName string) error
- func CherryPick() error
- func CreateAlphaTag() error
- func CreateAndPushTag(tag string) (err error)
- func CreateLocalTag(tag string) (err error)
- func DefaultGitConfig() error
- func GitConfig(email, name string) error
- func GitPushAll() error
- func GitPushAlpha() error
- func RemoveTag(tag string) (err error)
- func UpVersions(releaseType string) error
- func WriteCosignKeyToFile() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutReleaseBranch ¶
CheckoutReleaseBranch creates if not exists a release branch and then checkout @TODO validate release branch name with regex
func CherryPick ¶
func CherryPick() error
CherryPick Check for the dependencies than exec the cherry pick. When the workflow it's triggered to run on main, the commit it's going to be made directly to the main branch, so it's not needed to run this. Output: cherryPickBranchName: name of the branch that the updating versioning files was cherry picked. commitShaToPick: commit sha that was cherry picked to the new branch.
func CreateAlphaTag ¶
func CreateAlphaTag() error
CreateAlphaTag executes "git", "tag", "-f", "-s", "alpha", "-m", "alpha"
func CreateAndPushTag ¶ added in v1.0.23
CreateAndPushTag create and push a new given tag executing "git tag -s tag -m release+tag" and "git push --tags"
func CreateLocalTag ¶
CreateLocalTag executes "git", "tag", "-s", tag, "-m", "release "+tag
func DefaultGitConfig ¶
func DefaultGitConfig() error
DefaultGitConfig sets horusec as global git user and horusec@zup.com.br as global git email
func GitPushAlpha ¶
func GitPushAlpha() error
GitPushAlpha executes "git", "push", "origin", "-f", "alpha"
func RemoveTag ¶ added in v1.0.23
RemoveTag remove tag locally and in the origin "git tag -d tag" and "git push --delete origin tag"
func UpVersions ¶
UpVersions command to up latest version of the repository to the next, including the beta and rc next versions. Outputs: actualReleaseVersion: represents the actual version of the repository (v1.0.0). nextReleaseVersion: represents the next release version (v1.1.0). nextReleaseVersionStripped: represents the next release version without the v prefix (1.1.0). nextReleaseBranchName: represents the next release branch name (release/v1.1). nextBetaVersion: represents the next beta release tag name (v1.1.0-beta.1). nextRCVersion: represents the next rc release tag name (v1.1.0-rc.1). actualBetaVersion: represents the actual beta release tag name (v1.0.0-beta.1). actualRCVersion: represents the actual rc release tag name (v1.0.0-rc.1).
func WriteCosignKeyToFile ¶
func WriteCosignKeyToFile() error
WriteCosignKeyToFile executes "echo "$COSIGN_KEY" > $COSIGN_KEY_LOCATION"
Types ¶
This section is empty.