release-tools

command
v0.0.0-...-dde2e40 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

release-tools

Overview

The release-cc.sh script is used to perform the basic tag and release process for Clear Containers . It is designed to be run after a version bump was done in the file VERSION in Clear Containers repositories.

By default, it will ensure:

  • A new release is greater than the last Github release.

  • Won't allow create a new release with the same tag.

The script calls a go program called "release-tool", this program interacts with Gihub API to create new releases.o

The program release-tool can be used without release-cc.sh.

Example:

$ go build -o release-tool
#Get last runtime version
$ ./release-tool status runtime
#Get the next version bump for runtime repository
./release-tool status --next-bump runtime
For full details

Run:

$ ./release-tool -h

How to use it

Download and Build
$ repo="github.com/clearcontainers/tests/cmd/release-tools"
$ go get -d "$repo"
$ (cd "$GOPATH/src/$repo" && make)
Basic use
Github token

To do actions over repositories release-tool uses Github tokens to generate your own token check here.

$ export  GITHUB_TOKEN=my_token
$ ./release.sh "$repository_name"
Change remote

Usually when working with go repositories more than one repository is used:

  • The original repository

  • your own fork.

By default, the release.sh script will work with the remote that points to clearcontainers/<repository>. To change the remote owner export the variable OWNER="my_github_user and will use the remote which URL match <OWNER>/<repository>.

export OWNER=myuser
export GITHUB_TOKEN=my_token
./release.sh proxy
./release.sh runtime
./release.sh shim

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