| 1 | version: 2 |
| 2 | |
| 3 | project_name: editorconfig-core-go |
| 4 | |
| 5 | before: |
| 6 | hooks: |
| 7 | - go mod tidy |
| 8 | |
| 9 | builds: |
| 10 | - id: editorconfig |
| 11 | main: ./cmd/editorconfig/main.go |
| 12 | binary: editorconfig |
| 13 | env: |
| 14 | - CGO_ENABLED=0 |
| 15 | goos: |
| 16 | - linux |
| 17 | - darwin |
| 18 | - windows |
| 19 | |
| 20 | archives: |
| 21 | - id: tarball |
| 22 | builds: |
| 23 | - editorconfig |
| 24 | format_overrides: |
| 25 | - goos: windows |
| 26 | formats: |
| 27 | - zip |
| 28 | files: |
| 29 | - none* |
| 30 | |
| 31 | dockers: |
| 32 | - image_templates: |
| 33 | - ghcr.io/editorconfig/editorconfig-core-go/editorconfig:latest |
| 34 | - ghcr.io/editorconfig/editorconfig-core-go/editorconfig:{{ .Tag }} |
| 35 | - ghcr.io/editorconfig/editorconfig-core-go/editorconfig:v{{ .Major }} |
| 36 | - ghcr.io/editorconfig/editorconfig-core-go/editorconfig:v{{ .Major }}.{{ .Minor }} |
| 37 | goos: linux |
| 38 | goarch: amd64 |
| 39 | ids: |
| 40 | - editorconfig |
| 41 | build_flag_templates: |
| 42 | - "--pull" |
| 43 | - "--label=org.opencontainers.image.version={{ .Version }}" |
| 44 | - "--label=org.opencontainers.image.title={{ .ProjectName }}" |
| 45 | |
| 46 | nfpms: |
| 47 | - vendor: EditorConfig |
| 48 | homepage: https://github.com/editorconfig/editorconfig-core-go |
| 49 | maintainer: Yoan Blanc <[email protected]> |
| 50 | formats: |
| 51 | - deb |
| 52 | - rpm |
| 53 | epoch: 1 |
| 54 | release: 1 |
| 55 | |
| 56 | checksum: |
| 57 | name_template: 'checksums.txt' |
| 58 | |
| 59 | signs: |
| 60 | - artifacts: checksum |
| 61 | |
| 62 | snapshot: |
| 63 | version_template: "{{ .Tag }}-development" |
| 64 | |
| 65 | changelog: |
| 66 | sort: asc |
| 67 | filters: |
| 68 | exclude: |
| 69 | - '^docs:' |
| 70 | - '^test:' |
| 71 | |
| 72 | release: |
| 73 | github: |
| 74 | owner: editorconfig |
| 75 | name: editorconfig-core-go |
| 76 | draft: true |