Skip to content

Commit

Permalink
Merge pull request #5 from cloudradar-monitoring/try_pre_releases
Browse files Browse the repository at this point in the history
Add a hack to be able to release pre-releases
  • Loading branch information
soupdiver authored Oct 11, 2018
2 parents aa78c4c + 89f03cd commit 467a2ac
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 467a2ac

Please sign in to comment.