Skip to content

Commit

Permalink
Add quick doc for progressive rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Nov 19, 2024
1 parent 3250e49 commit aea71bc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,30 @@ using a TLS endpoint (`https`).
destination_path: destination.yaml
configuration_path: configuration.yaml
```

### Progressive Rollouts

The action can be used to progress a rollout ad-hoc, without modifying
configurations.

To trigger a rollout progression, format your commit message with `progress rollout <name>`.

Example:

```bash
git commit --allow-empty -m "progress rollout my-config"
```

The commit message must match this regular expression:

```
progress rollout (\S+)$
```

Therefore the commit message can contain additional details, such as:

```bash
git commit \
--allow-empty \
-m "Trigger rollout for dev: progress rollout dev-config"
```
6 changes: 6 additions & 0 deletions cmd/action/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ func Test_extractName(t *testing.T) {
found: true,
expected: "test_name",
},
{
name: "Readme example",
input: "Trigger rollout for dev: progress rollout dev-config",
found: true,
expected: "dev-config",
},
}

for _, tc := range cases {
Expand Down

0 comments on commit aea71bc

Please sign in to comment.