-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a hack to be able to release pre-releases
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 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 |
---|---|---|
|
@@ -3,15 +3,15 @@ version: 2 | |
jobs: | ||
test: | ||
docker: | ||
- image: cloudradario/go-build:0.0.5 | ||
- image: cloudradario/go-build:0.0.6 | ||
working_directory: /go/src/github.com/cloudradar-monitoring/cagent | ||
steps: | ||
- checkout | ||
- run: go test $(go list ./... | grep -v /vendor/) | ||
|
||
gorelease: | ||
docker: | ||
- image: cloudradario/go-build:0.0.5 | ||
- image: cloudradario/go-build:0.0.6 | ||
working_directory: /go/src/github.com/cloudradar-monitoring/cagent | ||
steps: | ||
# Setup our ssh key from env var to be able to connect to Windows VM | ||
|
@@ -20,6 +20,11 @@ jobs: | |
- checkout | ||
# Build binaries | ||
- run: goreleaser --rm-dist | ||
# Since goreleaser can't handle pre-releases as we need it we mark it later as pre-release using github-release | ||
- run: | ||
shell: /bin/bash | ||
command: | | ||
[[ ${CIRCLE_TAG} =~ (-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$ ]] && github-release edit --user cloudradar-monitoring --repo cagent --tag ${CIRCLE_TAG} -p | ||
# Create remote build dir | ||
- run: ssh -i /tmp/id_win_ssh -oStrictHostKeyChecking=no [email protected] mkdir -p /cygdrive/c/Users/hero/cagent_ci/build_msi/${CIRCLE_BUILD_NUM}/dist | ||
# Copy exe files to Windows VM for bundingling and signing | ||
|