updatectl

command
v0.2.2-rc7 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

README

updatectl

A simple tool to release flist to the hub. The tool simplifies the renaming and the linking of the flists on the hub.

To make a release you need the following:

  • Know version you want to release
  • The flist name to release
  • A release name (this can be anything)
  • IYO jwt token for hub access

A release will do the following:

  • Rename the flist to the proper versioned flist name -> <release>:<version>.flist
  • Create a link from the <release>.flist -> <release>:<version>.flist

Usage

Getting a JWT token

Getting a valid itsyou.online token is explained here in details, but in short you can do the following

curl -XPOST https://itsyou.online/v1/oauth/access_token?grant_type=client_credentials&client_id=${CLIENT_ID}&client_secret=${CLIENT_SECRET}&response_type=id_token > token.jwt

You can get a valid CLIENT_ID and CLIENT_SECRET from your itsyou.online account

Releasing

After you have the token ready in fine token.jwt

# FLIST is the flist to release
export FLIST=flist-to-release.flist
# RELEASE is the release name
export RELEASE=zos:production
# VERSION is the version tag
export VERSION=2.0.1

# NOTE: token.jwt is a file that has your valid jwt token for itsyou.online
updatectl release -t $(cat token.jwt) -f ${FLIST} -r ${RELEASE} ${VERSION}

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