You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -352,6 +352,38 @@ rollback:
352
352
```
353
353
<br>
354
354
355
+
You can also accept custom environment variables defined by the user that triggers the rollback:
356
+
357
+
**<code>rollback.variables</code>** contains an array of variable definitions.
358
+
359
+
For example:
360
+
361
+
```yaml
362
+
rollback:
363
+
variables:
364
+
-
365
+
name: RUN_MIGRATIONS
366
+
title: Run database migrations on rollback
367
+
default: 1
368
+
```
369
+
<br>
370
+
371
+
**<code>rollback.variables.select</code>** will turn the input into a `<select>` of values.
372
+
373
+
For example:
374
+
375
+
```yaml
376
+
rollback:
377
+
variables:
378
+
-
379
+
name: REGION
380
+
title: Run a rollback in a given region
381
+
select:
382
+
- east
383
+
- west
384
+
- north
385
+
```
386
+
<br>
355
387
356
388
**<code>fetch</code>** contains an array of the shell commands that Shipit executes to check the revision of the currently-deployed version. This key defaults to `disabled`.
357
389
@@ -362,7 +394,7 @@ fetch:
362
394
```
363
395
364
396
**Note:** Currently, deployments in emergency mode are configured to occur concurrently via [the `build_deploy` method](https://github.com/Shopify/shipit-engine/blob/main/app/models/shipit/stack.rb),
365
-
whose `allow_concurrency` keyword argument defaults to `force`, where `force` is true when emergency mode is enabled.
397
+
whose `allow_concurrency` keyword argument defaults to `force`, where `force` is true when emergency mode is enabled.
366
398
If you'd like to separate these two from one another, override this method as desired in your service.
0 commit comments