Created
September 25, 2017 09:26
-
-
Save r8d8/3f3228c57c5ddf7a5cc74180b752fa29 to your computer and use it in GitHub Desktop.
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever figure out how to get this working? I'm stuck with the exact same problem :(