Skip to content

Commit

Permalink
chore: add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
shmileee committed Aug 25, 2021
1 parent 1b13b36 commit 02f4953
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
main: main.go
brews:
- description: "Get current GitHub configuration and create Terraform code for it"
tap:
owner: shmileee
name: homebrew-tap
homepage: "https://github.com/shmileee/github-to-terraform"
commit_author:
name: shmileee
email: [email protected]
dockers:
-
ids:
- github-to-terraform
image_templates:
- "shmileee/github-to-terraform:{{ .Tag }}"
skip_push: true
archives:
-
replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
repos:

- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,16 @@ clean: ## Clean all generated files
rm -rf ./bin
rm -rf ./dist

.PHONY: goreleaser_check
goreleaser_check: ## Goreleaser check configuration
goreleaser check

.PHONY: goreleaser_build
goreleaser_build: ## Goreleaser build configuration
goreleaser build --snapshot --rm-dist

.PHONY: goreleaser_test
goreleaser_test: ## Goreleaser test configuration
goreleaser --snapshot --skip-publish --rm-dist

default: help

0 comments on commit 02f4953

Please sign in to comment.