Skip to content

Commit

Permalink
adding goreleaser, end-of-file-fixer ignore for testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
mclacore committed Oct 4, 2024
1 parent e8fcb63 commit b20d23c
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 3 deletions.
51 changes: 51 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
release:
# If set to auto, will mark the release as not ready for production in case there is an indicator for this in the
# tag e.g. v1.0.0-rc1 .If set to true, will mark the release as not ready for production.
prerelease: auto

builds:
- id: linux-build
binary: airlock
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
# commented these out so i work on implementing them with airlock
# ldflags: &build-ldflags |
# -X github.com/massdriver-cloud/mass/pkg/version.version={{.Version}}
# -X github.com/massdriver-cloud/mass/pkg/version.gitSHA={{.FullCommit}}

- id: darwin-build
binary: airlock
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
- arm64
ldflags: *build-ldflags

archives:
- id: linux-archives
builds:
- linux-build
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"

- id: darwin-archives
builds:
- darwin-build
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"

checksum:
name_template: 'checksums.txt'

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
15 changes: 12 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
fail_fast: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
Expand All @@ -8,9 +9,17 @@ repos:
- id: check-json
exclude: .devcontainer/
- id: pretty-format-json
args: [--autofix, --no-sort-keys, --indent=4]
args:
- --autofix
- --no-sort-keys
- --indent=4
exclude: .devcontainer/
- id: end-of-file-fixer
exclude: ^.*testdata/.*$
- id: detect-aws-credentials
args: [--allow-missing-credentials]
args:
- --allow-missing-credentials
- id: no-commit-to-branch
args: [-b, main]
args:
- -b
- main

0 comments on commit b20d23c

Please sign in to comment.