Skip to content

Commit

Permalink
Merge pull request #22 from trussworks/ee-add-goreleaser-circle
Browse files Browse the repository at this point in the history
add goreleaser to circleci config
  • Loading branch information
eeeady authored Mar 4, 2020
2 parents d1b4f3c + ea3d1e0 commit 6dd25dc
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
version: 2
version: 2.1

references:
circleci_docker_primary: &circleci_docker_primary trussworks/circleci-docker-primary:735a60a78114453f050c2ba45400c4aa6c9e06f2

jobs:
validate:
docker:
- image: trussworks/circleci-docker-primary:22977732ef16c3599f139654fdae7c7df8335dff
- image: *circleci_docker_primary
steps:
- checkout
- restore_cache:
Expand All @@ -15,9 +19,24 @@ jobs:
key: pre-commit-dot-cache-{{ checksum ".pre-commit-config.yaml" }}
paths:
- ~/.cache/pre-commit
release:
docker:
- image: *circleci_docker_primary
steps:
- checkout
- run: curl -sL https://git.io/goreleaser | bash

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

0 comments on commit 6dd25dc

Please sign in to comment.