Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use gox for building, update instructions for releasing and consuming
binaries.
- Loading branch information
Showing
3 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
build: | ||
go build -o bin/segment-proxy | ||
gox -output="bin/{{.Dir}}_{{.OS}}_{{.Arch}}" | ||
|
||
server: | ||
go run main.go | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# Releasing | ||
|
||
1. Verify the build by running `make build test docker`. | ||
2. Update the version in `README.md`. | ||
3. Update the `CHANGELOG.md` for the impending release. | ||
4. Run `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version). | ||
5. Run `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version). | ||
6. Run `git push && git push --tags`. | ||
7. Run `make docker-push`. | ||
8. Run `github-release release --user segmentio --repo segment-proxy --tag X.Y.Z --name "X.Y.Z"` | ||
8. Run `github-release upload --user segmentio --repo segment-proxy --tag X.Y.Z --name "X.Y.Z" --file bin/segment-proxy`. | ||
2. Update the `CHANGELOG.md` for the impending release. | ||
3. Run `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version). | ||
4. Run `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version). | ||
5. Run `git push && git push --tags`. | ||
6. Run `make docker-push`. | ||
7. Create a release on [Github](https://github.com/segmentio/segment-proxy/releases). | ||
8. Upload the files from the `bin` folder. |