Skip to content

Commit

Permalink
- Added goreleaser yaml and updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Ahl committed Jan 9, 2019
1 parent ac1e1fa commit 4022242
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
- binary: "{{ .ProjectName }}_{{ .Tag }}"
- env:
- CGO_ENABLED=0
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,26 @@

A tool for doing common AWS S3 tasks

## Commands

## Prune objects
### Prune command

```bash
./aws-s3 prune -bucket my-bucket -region us-west-1 -prefix daily/ -max-age 168h -dry-run
```

## Development

```bash
./run <command> <flags>
```

## Releasing

Pre-requisites:
- [goreleaser](https://goreleaser.com/)
- A github token

```bash
goreleaser --rm-dist
```

0 comments on commit 4022242

Please sign in to comment.