Installing the Aptible CLI in a CI environment

We are currently trying to migrate from Dockerfile deployment to direct Docker image deployment and in order to run the aptible deploy command we need to install the Aptible CLI on Circle CI.

Does anyone have any recommendations on how to do this?

Installing the CLI consists of two parts that you’ll need to add to your CI scripts:

  1. Download the appropriate package using the URL of the link from the Aptible CLI page. wget works well for this.
  2. Install the package. Consult your OS’ documentation on how to install packages from the command line.

Debian, for example, would look something like this:

PACKAGE_URL=https://omnibus-aptible-toolbelt.s3.amazonaws.com/aptible/omnibus-aptible-toolbelt/master/251/pkg/aptible-toolbelt_0.19.1%2B20210802230322~debian.8.10-1_amd64.deb
wget -O aptible-toolbelt.deb $PACKAGE_URL
dpkg -i aptible-toolbelt.deb