Skip to content

Commit

Permalink
Merge pull request #45 from porter-dev/autorollback-docs
Browse files Browse the repository at this point in the history
add autorollback docs
  • Loading branch information
Feroze Mohideen authored Feb 14, 2024
2 parents 5c0d51b + 59ce026 commit 259b892
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deploy/configuration-as-code/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ The following is a full reference for all the fields that can be set in a `porte
- [env](#env) \- the environment variables for the app.
- [predeploy](#predeploy) \- the pre-deploy job for the app.
- **run** - the run command for the pre-deploy job.
- [autoRollback](#autoRollback) \- the auto-rollback settings for the app.
- **enabled** - whether auto-rollback is enabled.

### `version`

Expand Down Expand Up @@ -102,3 +104,14 @@ env:
predeploy:
run: echo "predeploy"
```

### `autoRollback`

`object` - optional

When this attribute is enabled, Porter will automatically rollback all services in the app to the latest previously successfully-deployed version if the any service of the new version fails to deploy.

```yaml
autoRollback:
enabled: true
```

0 comments on commit 259b892

Please sign in to comment.