# GoReleaser configuration for ATCR # See https://goreleaser.com for documentation version: 2 before: hooks: - go mod tidy - go generate ./... builds: # Credential helper - cross-platform native binary distribution - id: credential-helper binary: docker-credential-atcr main: ./cmd/credential-helper env: - CGO_ENABLED=0 goos: - linux - darwin - windows goarch: - amd64 - arm64 ldflags: - -s -w - -X main.version={{.Version}} - -X main.commit={{.Commit}} - -X main.date={{.Date}} archives: - id: credential-helper name_template: >- docker-credential-atcr_ {{- .Version }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} files: - LICENSE* - README* - INSTALLATION* checksum: name_template: 'checksums.txt' snapshot: version_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: exclude: - '^docs:' - '^test:' - '^chore:' - Merge pull request - Merge branch publishers: - name: atproto-pds cmd: ./scripts/publish-artifact.sh env: - APP_PASSWORD={{ .Env.APP_PASSWORD }} - REPO_URL={{ .Env.REPO_URL }} - TAG={{ .Tag }} - ARTIFACT_PATH={{ abs .ArtifactPath }} - ARTIFACT_NAME={{ .ArtifactName }} # Disable since not using GitHub release: disable: true