Skip to content

Commit

Permalink
Circle 2.0 (#125)
Browse files Browse the repository at this point in the history
* update circle config to 2.0; similar to aws-okta
  • Loading branch information
nickatsegment committed Sep 5, 2018
1 parent e743d3b commit 07d0605
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 42 deletions.
43 changes: 43 additions & 0 deletions .circle/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/segmentio/chamber
steps:
- checkout
- run:
name: Build
command: |
make govendor dist
- persist_to_workspace:
root: .
paths: ['dist/*']

release:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/segmentio/chamber
steps:
- checkout
- attach_workspace: { at: . }
- run:
name: Release
command: |
make release
workflows:
version: 2
build-release:
jobs:
- build
- release:
requires:
- build
filters:
# release on branch push event
branches:
ignore: /.*/
# release only on tag push events like vX[.Y.Z...]
tags:
only: /v[0-9]+(\.[0-9]+)*/
42 changes: 0 additions & 42 deletions circle.yml

This file was deleted.

0 comments on commit 07d0605

Please sign in to comment.