Skip to content

Instantly share code, notes, and snippets.

@r8d8
Created September 25, 2017 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r8d8/3f3228c57c5ddf7a5cc74180b752fa29 to your computer and use it in GitHub Desktop.
Save r8d8/3f3228c57c5ddf7a5cc74180b752fa29 to your computer and use it in GitHub Desktop.
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.8
working_directory: /go/src/github.com/r8d8/nem-toolchain
steps:
- checkout
- run: make setup
- run: make ci
- run: bash <(curl -s https://codecov.io/bash)
deploy:
docker:
- image: circleci/golang:1.8
working_directory: /go/src/github.com/r8d8/nem-toolchain
enviroment:
BUILD_DATE=$(date -u '+%Y/%m/%d %H:%M:%S')
BUILD_VERSION=$(git describe --tags)
steps:
- checkout
- run: mkdir -p dist
- run: make setup
- run: curl -sL https://git.io/goreleaser | bash
# - run: go get github.com/tcnksm/ghr
# - run: gox -ldflags "-X main.Version $BUILD_VERSION -X main.BuildDate $BUILD_DATE" -output "dist/ncd_{{.OS}}_{{.Arch}}" /go/src/github.com/r8d8/nem-toolchain/cmd/nem/main.go
# - run: ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/
workflows:
version: 2
build-n-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
branches:
only: master
@TimonVS
Copy link

TimonVS commented Jun 12, 2018

Did you ever figure out how to get this working? I'm stuck with the exact same problem :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment