Skip to content

Commit

Permalink
Merge pull request #66 from cybozu-go/release
Browse files Browse the repository at this point in the history
[circleci] add release workflow.
  • Loading branch information
dulltz authored Jan 17, 2019
2 parents f3c312b + 91645ca commit 8257d13
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,32 @@ jobs:
- run: make SUDO="" setup
- run: make test
- run: make deb FAKEROOT=
build_release:
docker:
- image: quay.io/cybozu/golang:1.11-bionic
- image: quay.io/coreos/etcd:v3.3
working_directory: /work
resource_class: large
steps:
- checkout
- run: make SUDO="" setup
- run: make test
- run:
name: Build deb package
command: |
VERSION=$(echo $CIRCLE_TAG | sed 's/^release-//')
make deb VERSION="$VERSION" TAGS=release FAKEROOT=
- persist_to_workspace:
root: .
paths:
- "*.deb"
deploy_github:
docker:
- image: quay.io/cybozu/golang:1.11-bionic
steps:
- attach_workspace:
at: ./artifacts
- run: ghr -prerelease -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_TAG} ./artifacts/
dctest:
docker:
- image: google/cloud-sdk
Expand Down Expand Up @@ -51,3 +77,19 @@ workflows:
jobs:
- build
- dctest
release:
jobs:
- build_release:
filters:
branches:
ignore: /.*/
tags:
only: /^release-.*/
- deploy_github:
requires:
- build_release
filters:
branches:
ignore: /.*/
tags:
only: /^release-.*/

0 comments on commit 8257d13

Please sign in to comment.