Skip to content

Commit

Permalink
Build and Release with CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Oct 18, 2019
1 parent 2142666 commit faf338f
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,50 @@
version: 2.1
executors:
go:
docker:
- image: circleci/golang:1.13.1
working_directory: /go/src/github.com/minamijoyo/tfupdate
environment:
GO111MODULE: "on"

commands:
gomod:
steps:
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
command: go mod download
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
jobs:
test:
executor: go
steps:
- checkout
- gomod
- run: make check

release:
executor: go
steps:
- checkout
- gomod
- run: make check
- run: make release

workflows:
version: 2
ci:
jobs:
- test
release:
jobs:
- release:
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/

0 comments on commit faf338f

Please sign in to comment.