Skip to content

Commit

Permalink
build: circleci configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
leogr authored and poiana committed Apr 20, 2020
1 parent 3cfb9bd commit d1b7425
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2.1
workflows:
main:
jobs:
- test:
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
- release:
requires:
- test
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
jobs:
test:
docker:
- image: docker.io/golang:1.14.0
steps:
- checkout
- run:
name: Test
command: make test
release:
docker:
- image: circleci/golang:1.14
steps:
- checkout
- setup_remote_docker
- run:
name: Prepare env
command: |
echo ${DOCKERHUB_SECRET} | docker login -u ${DOCKERHUB_USER} --password-stdin
- run: curl -sL https://git.io/goreleaser | bash

0 comments on commit d1b7425

Please sign in to comment.