cloudflare/pint
Publicmirrored fromhttps://github.com/cloudflare/pintAvailable
.goreleaser.yml
79lines · modecode
| 1 | version: 2 |
| 2 | |
| 3 | builds: |
| 4 | - main: ./cmd/pint |
| 5 | flags: |
| 6 | - "-trimpath" |
| 7 | ldflags: |
| 8 | - "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}" |
| 9 | env: |
| 10 | - CGO_ENABLED=0 |
| 11 | goos: |
| 12 | - linux |
| 13 | - windows |
| 14 | - darwin |
| 15 | ignore: |
| 16 | - goos: windows |
| 17 | goarch: arm64 |
| 18 | no_unique_dist_dir: true |
| 19 | binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}" |
| 20 | |
| 21 | archives: |
| 22 | - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" |
| 23 | checksum: |
| 24 | name_template: "checksums.txt" |
| 25 | snapshot: |
| 26 | version_template: "{{ incpatch .Version }}-next" |
| 27 | release: |
| 28 | extra_files: |
| 29 | - glob: ./README.md |
| 30 | - glob: ./docs/changelog.md |
| 31 | |
| 32 | changelog: |
| 33 | use: github |
| 34 | sort: asc |
| 35 | filters: |
| 36 | exclude: |
| 37 | - "^Merge pull request " |
| 38 | |
| 39 | dockers: |
| 40 | - image_templates: |
| 41 | ["ghcr.io/cloudflare/{{ .ProjectName }}:{{ .Version }}-amd64"] |
| 42 | dockerfile: Dockerfile.amd64 |
| 43 | use: buildx |
| 44 | build_flag_templates: |
| 45 | - --platform=linux/amd64 |
| 46 | - --label=org.opencontainers.image.title={{ .ProjectName }} |
| 47 | - --label=org.opencontainers.image.description={{ .ProjectName }} |
| 48 | - --label=org.opencontainers.image.url=https://github.com/cloudflare/{{ .ProjectName }} |
| 49 | - --label=org.opencontainers.image.source=https://github.com/cloudflare/{{ .ProjectName }} |
| 50 | - --label=org.opencontainers.image.version={{ .Version }} |
| 51 | - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }} |
| 52 | - --label=org.opencontainers.image.revision={{ .FullCommit }} |
| 53 | - --label=org.opencontainers.image.licenses=Apache-2.0 |
| 54 | |
| 55 | - image_templates: |
| 56 | ["ghcr.io/cloudflare/{{ .ProjectName }}:{{ .Version }}-arm64"] |
| 57 | goarch: arm64 |
| 58 | dockerfile: Dockerfile.arm64 |
| 59 | use: buildx |
| 60 | build_flag_templates: |
| 61 | - --platform=linux/arm64 |
| 62 | - --label=org.opencontainers.image.title={{ .ProjectName }} |
| 63 | - --label=org.opencontainers.image.description={{ .ProjectName }} |
| 64 | - --label=org.opencontainers.image.url=https://github.com/cloudflare/{{ .ProjectName }} |
| 65 | - --label=org.opencontainers.image.source=https://github.com/cloudflare/{{ .ProjectName }} |
| 66 | - --label=org.opencontainers.image.version={{ .Version }} |
| 67 | - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }} |
| 68 | - --label=org.opencontainers.image.revision={{ .FullCommit }} |
| 69 | - --label=org.opencontainers.image.licenses=Apache-2.0 |
| 70 | |
| 71 | docker_manifests: |
| 72 | - name_template: ghcr.io/cloudflare/{{ .ProjectName }}:{{ .Version }} |
| 73 | image_templates: |
| 74 | - ghcr.io/cloudflare/{{ .ProjectName }}:{{ .Version }}-amd64 |
| 75 | - ghcr.io/cloudflare/{{ .ProjectName }}:{{ .Version }}-arm64 |
| 76 | - name_template: ghcr.io/cloudflare/{{ .ProjectName }}:latest |
| 77 | image_templates: |
| 78 | - ghcr.io/cloudflare/{{ .ProjectName }}:{{ .Version }}-amd64 |
| 79 | - ghcr.io/cloudflare/{{ .ProjectName }}:{{ .Version }}-arm64 |
| 80 | |