diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..1170452 --- /dev/null +++ b/.goreleaser.yaml @@ -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:' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d7d94dc..98c1446 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,5 @@ fail_fast: false + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.2.0 @@ -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