Skip to content

Commit f3f8c4c

Browse files
committed
change default prune retention to 30 versions
you can actually remove them all from s3 and it does nothing, Lambda copies them internally to its own storage
1 parent 55d6d06 commit f3f8c4c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/06-commands.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,18 +825,18 @@ Flags:
825825
--format="text" Output formatter.
826826
--version Show application version.
827827
-s, --stage="staging" Target stage name.
828-
-r, --retain=60 Number of versions to retain.
828+
-r, --retain=30 Number of versions to retain.
829829
```
830830

831831
### Examples
832832

833-
Prune and retain the most recent 15 staging versions.
833+
Prune and retain the most recent 30 staging versions.
834834

835835
```
836836
$ up prune
837837
```
838838

839-
Prune and retain the most recent 60 production versions.
839+
Prune and retain the most recent 30 production versions.
840840

841841
```
842842
$ up prune -s production

internal/cli/prune/prune.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111
func init() {
1212
cmd := root.Command("prune", "Prune old S3 deployments of a stage.")
1313

14-
cmd.Example(`up prune`, "Prune and retain the most recent 15 staging versions.")
15-
cmd.Example(`up prune -s production`, "Prune and retain the most recent 60 production versions.")
14+
cmd.Example(`up prune`, "Prune and retain the most recent 30 staging versions.")
15+
cmd.Example(`up prune -s production`, "Prune and retain the most recent 30 production versions.")
1616
cmd.Example(`up prune -s production -r 15`, "Prune and retain the most recent 15 production versions.")
1717

1818
stage := cmd.Flag("stage", "Target stage name.").Short('s').Default("staging").String()
19-
versions := cmd.Flag("retain", "Number of versions to retain.").Short('r').Default("60").Int()
19+
versions := cmd.Flag("retain", "Number of versions to retain.").Short('r').Default("30").Int()
2020

2121
cmd.Action(func(_ *kingpin.ParseContext) error {
2222
c, p, err := root.Init()

0 commit comments

Comments
 (0)