-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from circleci/releases
CIRCLE-11768 Install goreleaser and use it to publish binaries to GitHub releases.
- Loading branch information
Showing
5 changed files
with
56 additions
and
14 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 |
---|---|---|
|
@@ -7,6 +7,14 @@ workflows: | |
- test | ||
- coverage | ||
- lint | ||
- deploy: | ||
requires: | ||
- test | ||
- coverage | ||
- lint | ||
filters: | ||
branches: | ||
only: master | ||
|
||
jobs: | ||
test: | ||
|
@@ -53,3 +61,28 @@ jobs: | |
go get -u github.com/alecthomas/gometalinter | ||
gometalinter --install | ||
- run: make lint | ||
|
||
deploy: | ||
docker: | ||
- image: circleci/golang:1.10 | ||
environment: | ||
GORELEASER_URL: https://github.com/goreleaser/goreleaser/releases/download/v0.77.1/goreleaser_amd64.deb | ||
|
||
working_directory: /go/src/github.com/circleci/circleci-cli | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install GoReleaser | ||
command: | | ||
curl --silent --location --fail --retry 3 $GORELEASER_URL > /tmp/goreleaser_amd64.deb | ||
sudo apt install /tmp/goreleaser_amd64.deb | ||
- run: | ||
name: Tag Repo | ||
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Marc O'Morain" | ||
git tag -a "v0.1.$CIRCLE_BUILD_NUM" -m "Release v0.1.$CIRCLE_BUILD_NUM" | ||
git push origin "v0.1.$CIRCLE_BUILD_NUM" | ||
- run: | ||
name: Release | ||
command: goreleaser |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ build/ | |
TODO | ||
circleci-cli | ||
coverage.txt | ||
dist/ |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
archive: | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
builds: | ||
- binary: circleci-beta | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 |
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