Configuring revision control

New releases are created in Fleet using the fleet release create command. This can create a release from any commit (tree-ish in git terminology).

For this system to work you'll need to add your Fleet's public SSH key to allow it to clone your repository:

Install Deployment Key

For Fleet to be able to create releases from your code, it needs to be able to pull from your repository.

Anchor will have provided you with a deployment key when you created your Fleet. You can also retrieve the key yourself using the fleet config publickey command.

BitBucket

  1. Repository -> Settings -> Deployment keys
  2. Press 'Add key'
  3. Choose a name for the key, anything is fine
  4. Paste the deploy key provided by Anchor
  5. Press 'Add key'

GitHub

  1. Repository -> Settings -> Deploy keys
  2. Press 'Add deploy key'
  3. Give the key a title, anything is fine
  4. Paste the deploy key provided by Anchor
  5. Do not check 'Allow write access', Fleet only requires read access.
  6. Press 'Add key'