Skip to content

Commit

Permalink
docs: Update doc for CircleCI 2.0 (#739)
Browse files Browse the repository at this point in the history
Support for CircleCI 1.0 will end on August 31, 2018.
I have updated the docs with examples for CircleCI 2.0.
See #350.
  • Loading branch information
caalberts authored and caarlos0 committed Aug 1, 2018
1 parent 82493e2 commit f2878d3
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions www/content/ci.md
Expand Up @@ -57,9 +57,32 @@ Note the last line (`condition: $TRAVIS_OS_NAME = linux`): it is important
if you run a build matrix with multiple Go versions and/or multiple OSes. If
that's the case you will want to make sure GoReleaser is run just once.

# Circle
## CircleCI

Here is how to do it with [CircleCI](https://circleci.com):
Here is how to do it with [CircleCI 2.0](https://circleci.com):

```yml
# .circleci/config.yml
jobs:
release:
docker:
- image: circleci/golang:1.10
steps:
- checkout
- run: curl -sL https://git.io/goreleaser | bash
workflows:
version: 2
release:
jobs:
- release:
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
```

For CircleCI 1.0:

```yml
# circle.yml
Expand Down

0 comments on commit f2878d3

Please sign in to comment.