2023-06-10 21:26:59 +02:00
|
|
|
# Build Notes
|
|
|
|
|
|
|
|
## Bootstrap
|
|
|
|
|
|
|
|
Install [Cobra CLI tool](https://github.com/spf13/cobra) `go install github.com/spf13/cobra-cli@latest`
|
|
|
|
|
|
|
|
[Install](https://goreleaser.com/install/) [goreleaser](https://goreleaser.com/)
|
|
|
|
|
|
|
|
* `go build && go install`
|
|
|
|
|
2020-07-22 22:50:37 +02:00
|
|
|
## to build with goreleaser
|
|
|
|
|
|
|
|
* `goreleaser --snapshot --skip-publish --rm-dist`
|
2020-07-26 22:30:14 +02:00
|
|
|
* `dist/FLEcli_darwin_amd64/FLEcli`
|
2020-08-11 13:21:20 +02:00
|
|
|
* `docker build -f docker/Dockerfile -t test/test dist/FLEcli_linux_arm64`
|
|
|
|
|
|
|
|
## to push a release
|
|
|
|
|
|
|
|
* on the master branch `git tag v0.1.1`
|
2023-06-10 21:26:59 +02:00
|
|
|
* `git push --tag`
|