We distribute the Conjur CLI as an Omnibus package for Ubuntu, Centos, OSX and also as a rubygem.
Experimentally, the CLI is also avaliable as a non-Omnibus deb package called 'rubygems-conjur-cli' which depends on ruby2.0.
Steps to publish a new version of the CLI:
- Update
VERSION
in lib/conjur/version.rb - Update the CHANGELOG.md with any changes for this version
- Commit these changes with the message
"v#{VERSION}"
, whereVERSION
= the new version - Go to the specific build page for the commit in Jenkins
- In the left sidebar, open
Promotion Status
- Click
Approve
for the "rubygems" promotion and wait for it to finish - Click
Approve
for the "packages" promotion, this will kick off the omnibus-conjur build flow 1. - Download the deb, rpm and pkg packages from their build pages in Jenkins.
- Move the downloaded files to the
pkg
folder in your local omnibus-conjur project. - In the
omnibus-conjur
project, upload each file to S3 with./publish pkg/<filename>
. - Update the links on the CLI page for the devsite.
- Promote the devsite to production in Jenkins 2.
Publishing the experimental deb:
./build-deb.sh
summon -f ci/secrets/publish.yml ./publish.sh <component> <distribution>
Installing from experimental deb:
# apt-get install -y wget apt-transport-https
# echo 'deb https://conjurinc.artifactoryonline.com/conjurinc/debian-public v4 master' >> /etc/apt/sources.list
# wget -qO - https://conjurinc.artifactoryonline.com/conjurinc/api/gpg/key/public | apt-key add -
# apt-get update
# apt-get install conjur-cli
1: The packages promotion depends on the new gem version being published.
2 After deploy it will take a few minutes for the cache to update.