diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..989b67f --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,53 @@ +version: 2 + +project_name: awscurl + +before: + hooks: + - go mod download + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + goarch: + - amd64 + - arm64 + +archives: + - format: zip + +checksum: + name_template: "checksums.txt" + +dockers: + - dockerfile: Dockerfile + goos: linux + goarch: amd64 + image_templates: + - "legal90/{{.ProjectName}}:{{ .Tag }}" + - "legal90/{{.ProjectName}}:latest" + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.name={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + # Skips the docker push. Could be useful if you also do draft releases. + # If set to auto, the release will not be pushed to the docker repository + # in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1 + # Defaults to false. + skip_push: auto + +snapshot: + version_template: "{{ .Tag }}-next" + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index b6370db..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,52 +0,0 @@ - -project_name: awscurl - -before: - hooks: - - go mod download - -builds: -- env: - - CGO_ENABLED=0 - goos: - - linux - - darwin - - windows - goarch: - - amd64 - - arm64 - -archives: -- format: zip - -checksum: - name_template: 'checksums.txt' - -dockers: -- dockerfile: Dockerfile - goos: linux - goarch: amd64 - image_templates: - - 'legal90/{{.ProjectName}}:{{ .Tag }}' - - 'legal90/{{.ProjectName}}:latest' - build_flag_templates: - - "--pull" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.name={{.ProjectName}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version={{.Version}}" - # Skips the docker push. Could be useful if you also do draft releases. - # If set to auto, the release will not be pushed to the docker repository - # in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1 - # Defaults to false. - skip_push: auto - -snapshot: - name_template: "{{ .Tag }}-next" - -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:'