Skip to content

CLI tool written in GO to implement the Decipher release process

Notifications You must be signed in to change notification settings

DecipherNow/releaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Releaser

GoDoc Go Report Card

Implement the decipher release process. The two sub-commands available here are github and docker, to help with two main release processes.

Github

The github functionality is a simple wrapper around a github SDK to create releases, tag commits, and upload release assets.

Note: the github sub-command relies on the current working directory for repository information. Ensure that the final folder in the path where releaser is running matches the remote repository name. For example, for a remote repository of releaser the current working directory should be of the form .../.../releaser.

Docker

The docker functionality is a simple wrapper around a docker SDK to take a source image, tag it with major, major.minor, and major.minor.patch tags, and then to push up to dockerhub.

Usage

Help

Help packes are available for both the Docker and Github processes:

Docker Image Tag/Push

>>$ ./releaser help docker
NAME:
   releaser docker - Do the docker job

USAGE:
   releaser docker [command options] [arguments...]

OPTIONS:
   --semver value    Symantic Version of the release to prepare
   --image value     Source Docker image to release
   --username value  Username for cmd operations
   --password value  Password for cmd operations
   --suffix value    String to be appended to the final docker tag. e.g. -alpine, -centos

Github Release

>>$ ./releaser help github
NAME:
   releaser github - Do the github release

USAGE:
   releaser github [command options] [arguments...]

OPTIONS:
   --semver value        Symantic Version of the release to prepare
   --token value         Access token for github releases
   --organization value  Organization for github releases
   --username value      Username for cmd operations
   --password value      Password for cmd operations
   --asset value         File[s] to be uploaded to the github release
Adding release asset
>>$ ./releaser help add-asset
NAME:
   releaser add-asset - Add an asset to an existing github release

USAGE:
   releaser add-asset [command options] [arguments...]

OPTIONS:
   --token value         Access token for github releases
   --organization value  Organization for github releases
   --username value      Username for cmd operations
   --password value      Password for cmd operations
   --asset value         File[s] to be uploaded to the github release
   --releaseID value     Release to upload assets to.  Must already exist.

semver tagging/push docker images

releaser docker --semver v1.3.4 --image deciphernow/gm-proxy:latest --username $DOCKER_USER --password $DOCKER_PASS

Create release and upload an asset for the release

releaser github --semver 3.4.5 --token $GITHUB_TOKEN --organization deciphernow --asset ./binary-asset

Build

  1. dep ensure -v
  2. go build

About

CLI tool written in GO to implement the Decipher release process

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages