|
1 | 1 | # vmfloaty
|
2 | 2 |
|
3 | 3 | [](https://badge.fury.io/rb/vmfloaty)
|
4 |
| -[](https://github.com/puppetlabs/vmfloaty/actions/workflows/ci.yml) |
| 4 | +[](https://github.com/puppetlabs/vmfloaty/actions/workflows/test.yml) |
5 | 5 |
|
6 | 6 | A CLI helper tool for [Puppet's VMPooler](https://github.com/puppetlabs/vmpooler) to help you stay afloat.
|
7 | 7 |
|
8 | 8 | 
|
9 | 9 |
|
10 |
| -- [Install](#install) |
11 |
| -- [Usage](#usage) |
12 |
| - - [Example workflow](#example-workflow) |
13 |
| - - [vmfloaty dotfile](#vmfloaty-dotfile) |
14 |
| - - [Basic configuration](#basic-configuration) |
15 |
| - - [Using multiple services](#using-multiple-services) |
16 |
| - - [Using backends besides VMPooler](#using-backends-besides-vmpooler) |
17 |
| - - [Valid config keys](#valid-config-keys) |
18 |
| - - [Tab Completion](#tab-completion) |
19 |
| -- [VMPooler API](#vmpooler-api) |
20 |
| -- [Using the Pooler class](#using-the-pooler-class) |
21 |
| - - [Example Projects](#example-projects) |
22 |
| -- [Contributing](#contributing) |
23 |
| - - [Code Reviews](#code-reviews) |
24 |
| -- [Releasing](#releasing) |
25 |
| -- [Special thanks](#special-thanks) |
| 10 | +- [vmfloaty](#vmfloaty) |
| 11 | + - [Install](#install) |
| 12 | + - [Ruby](#ruby) |
| 13 | + - [Docker](#docker) |
| 14 | + - [Usage](#usage) |
| 15 | + - [Example workflow](#example-workflow) |
| 16 | + - [vmfloaty dotfile](#vmfloaty-dotfile) |
| 17 | + - [Basic configuration](#basic-configuration) |
| 18 | + - [Using multiple services](#using-multiple-services) |
| 19 | + - [Using backends besides VMPooler](#using-backends-besides-vmpooler) |
| 20 | + - [Valid config keys](#valid-config-keys) |
| 21 | + - [Tab Completion](#tab-completion) |
| 22 | + - [VMPooler API](#vmpooler-api) |
| 23 | + - [Using the Pooler class](#using-the-pooler-class) |
| 24 | + - [Example Projects](#example-projects) |
| 25 | + - [Contributing](#contributing) |
| 26 | + - [Code Reviews](#code-reviews) |
| 27 | + - [Releasing](#releasing) |
| 28 | + - [Special thanks](#special-thanks) |
26 | 29 |
|
27 | 30 | ## Install
|
28 | 31 |
|
| 32 | +### Ruby |
| 33 | + |
29 | 34 | Grab the latest from ruby gems...
|
30 | 35 |
|
31 | 36 | ```bash
|
32 | 37 | gem install vmfloaty
|
33 | 38 | ```
|
34 | 39 |
|
| 40 | +### Docker |
| 41 | + |
| 42 | +Run the docker image: |
| 43 | + |
| 44 | +`docker run -it --rm -v ~/.vmfloaty.yml:/home/floatyuser/.vmfloaty.yml ghcr.io/puppetlabs/vmfloaty --help` |
| 45 | + |
35 | 46 | ## Usage
|
36 | 47 |
|
37 | 48 | ```plain
|
@@ -177,10 +188,12 @@ Please wait for multiple code owners to sign off on any notable change.
|
177 | 188 |
|
178 | 189 | ## Releasing
|
179 | 190 |
|
180 |
| -Releasing is a two step process: |
| 191 | +Follow these steps to publish a new GitHub release, build and push the gem to <https://rubygems.org>, and build and push a Docker Image to GitHub Container Registry: |
181 | 192 |
|
182 |
| -1. Submit a release prep PR that updates `lib/vmfloaty/version.rb` to the desired new version and get that merged |
183 |
| -2. Navigate to <https://github.com/puppetlabs/vmfloaty/actions/workflows/release.yml> --> Run workflow --> select "main" branch --> Run workflow. This will publish a GitHub release, build, and push the gem to RubyGems. |
| 193 | +1. Bump the "VERSION" in `lib/vmpooler/version.rb` appropriately based on changes in `CHANGELOG.md` since the last release. |
| 194 | +2. Run `./release-prep` to update `Gemfile.lock` if necessary and `CHANGELOG.md`. |
| 195 | +3. Commit and push changes to a new branch, then open a pull request against `main` and be sure to add the "maintenance" label. |
| 196 | +4. After the pull request is approved and merged, then navigate to <https://github.com/puppetlabs/vmfloaty/actions/workflows/release.yml> --> Run workflow --> select "main" branch --> Run workflow. This will publish a GitHub release, build and push the gem to RubyGems, and build and push a Docker Image to GitHub Container Registry. |
184 | 197 |
|
185 | 198 | ## Special thanks
|
186 | 199 |
|
|
0 commit comments