Skip to content

Commit

Permalink
Add a hack to be able to release pre-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
soupdiver committed Oct 11, 2018
1 parent aa78c4c commit 89f03cd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 89f03cd

Please sign in to comment.