Skip to content

Commit

Permalink
fix: use environment variable for passing the version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Sep 19, 2023
1 parent ff3edce commit e71d596
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ builds:
goos: ["linux", "darwin", "windows"]
goarch: ["386", "amd64", "arm64"]
ldflags:
- -s -w -X "main.version={{.Version}}"
- -s -w -X "main.version={{.Env.VERSION}}"
env:
- CGO_ENABLED=0

Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ pre-commit install
- `make lint`, performs linting actions on the codebase.
- `make test`, runs all the unit tests.

## Installation

You can install the tool with the following command:

```shell
go install github.com/conijnio/aws-iam-user@latest
```

## License

This project is free and open source software licensed under the [Apache 2.0 License](./LICENSE).

0 comments on commit e71d596

Please sign in to comment.