Skip to content

Commit

Permalink
update circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
miiton committed Sep 17, 2018
1 parent b0fcfde commit 8a5123e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ jobs:
docker:
- image: docker:17.05.0-ce-git
steps:
- attach_workspace:
at: ./dist
- checkout
- setup_remote_docker
- run:
Expand All @@ -17,4 +19,21 @@ jobs:
- run:
name: Build
command: |
docker-compose up
docker-compose build && docker-compose run --rm cica
publish-github-release:
required:
- build
filters:
tags:
only: /^v\d+\.\d+\.\d+$/
docker:
- image: circleci/golang:1.8
steps:
- attach_workspace:
at: ./dist
- run:
name: Publish Release on GitHub
command: |
go get github.com/tcnksm/ghr
VERSION=$(my-binary --version)
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./dist/

0 comments on commit 8a5123e

Please sign in to comment.