githubrelease

command
v0.0.0-...-a4b4531 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

Github Release

Overview

This command creates GitHub releases based on artifacts stored in a Google bucket. Each release requires the following set of artifacts:

  • kyma-installer-cr-cluster.yaml
  • kyma-config-local.yaml
  • kyma-installer-cr-local.yaml
  • release-changelog.md
  • kyma-installer.yaml

Usage

To run it, use:

env GOOGLE_APPLICATION_CREDENTIALS={path to the service account file} go run main.go \ 
    -targetCommit={commitish value that the GitHub tag refers to} \
    -githubRepoOwner={GitHub repository owner} \
    -githubRepoName={GitHub repository name} \
    -githubAccessToken={GitHub OAuth2 access token} \
    -releaseVersionFilePath={full path to the RELEASE_VERSION file} 
Flags

See the list of available flags:

Name Required Description
--targetCommit Yes The string which specifies the commitish value that the GitHub tag refers to.
--bucketName No The string value with the name of the Google bucket containing release artifacts. It defaults to kyma-prow-artifacts.
--kymaInstallerCRCluster No The string value with the name of the file with list of components installed by the installer for cluster. It defaults to kyma-installer-cr-cluster.yaml.
--kymaConfigLocal No The string value with the name of the Kyma local configuration file. It defaults to kyma-config-local.yaml.
--kymaInstallerCRLocal No The string value with the name of the file with list of components installed by the installer for local. It defaults to kyma-installer-cr-local.yaml.
--kymaInstaller No The string value with the name of the file with list of CRDs and deployments required to be installed before the CR can be applied. It defaults to kyma-installer.yaml.
--kymaChangelog No The string value with the name of the release changelog file. It defaults to release-changelog.md.
--githubRepoOwner Yes The string value with the name of the GitHub repository owner.
--githubRepoName Yes The string value with the name of the GitHub repository.
--githubAccessToken Yes The string value with the name of the GitHub OAuth2 access token.
--releaseVersionFilePath Yes The string value with the full path to the RELEASE_VERSION file.
Environment variables

Available environment variables:

Name Required Description
GOOGLE_APPLICATION_CREDENTIALS Yes The path to the service account file. The service account requires at least storage roles.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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