Skip to content

Commit

Permalink
Merge pull request #6 from Luzilla/ci
Browse files Browse the repository at this point in the history
Update: entrypoint
  • Loading branch information
till authored Nov 3, 2019
2 parents 7816159 + 2e365da commit aabc672
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2.1
workflows:
main:
jobs:
- build
- release:
# Only run this job on git tag pushes
filters:
Expand All @@ -10,11 +11,16 @@ workflows:
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
jobs:
release:
build:
docker:
- image: circleci/golang:1.12
- image: goreleaser/goreleaser
steps:
- checkout
- run: curl -sL https://git.io/goreleaser | bash
- run: goreleaser check
- run: goreleaser --snapshot --rm-dist
release:
docker:
- image: goreleaser/goreleaser
steps:
- checkout
- run: goreleaser release --rm-dist
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before:
# you may remove this if you don't need go generate
- go generate ./...
builds:
- main: ./main.go
- main: ./dnsbl_exporter.go
binary: dnsbl-exporter
ldflags: -s -w -X main.exporterVersion={{.Version}}
goos:
Expand Down
File renamed without changes.

0 comments on commit aabc672

Please sign in to comment.