|
| 1 | +# GoReleaser configuration for IssueParser |
| 2 | +# https://goreleaser.com/customization/ |
| 3 | + |
| 4 | +version: 2 |
| 5 | + |
| 6 | +before: |
| 7 | + hooks: |
| 8 | + - go mod tidy |
| 9 | + |
| 10 | +builds: |
| 11 | + - id: issueparser |
| 12 | + main: ./cmd/issueparser |
| 13 | + binary: issueparser |
| 14 | + |
| 15 | + # Build for Linux and macOS |
| 16 | + goos: |
| 17 | + - linux |
| 18 | + - darwin |
| 19 | + |
| 20 | + goarch: |
| 21 | + - amd64 |
| 22 | + - arm64 |
| 23 | + |
| 24 | + env: |
| 25 | + - CGO_ENABLED=0 |
| 26 | + |
| 27 | + ldflags: |
| 28 | + - -s -w |
| 29 | + |
| 30 | +archives: |
| 31 | + - id: issueparser |
| 32 | + builds: |
| 33 | + - issueparser |
| 34 | + |
| 35 | + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" |
| 36 | + |
| 37 | + files: |
| 38 | + - LICENSE |
| 39 | + - README.md |
| 40 | + |
| 41 | +checksum: |
| 42 | + name_template: "checksums.txt" |
| 43 | + algorithm: sha256 |
| 44 | + |
| 45 | +dockers: |
| 46 | + - id: issueparser-amd64 |
| 47 | + goos: linux |
| 48 | + goarch: amd64 |
| 49 | + ids: |
| 50 | + - issueparser |
| 51 | + image_templates: |
| 52 | + - "ghcr.io/defilan/issueparser:{{ .Version }}-amd64" |
| 53 | + - "ghcr.io/defilan/issueparser:latest-amd64" |
| 54 | + dockerfile: Dockerfile.goreleaser |
| 55 | + use: buildx |
| 56 | + build_flag_templates: |
| 57 | + - "--platform=linux/amd64" |
| 58 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 59 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 60 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 61 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 62 | + - "--label=org.opencontainers.image.source={{.GitURL}}" |
| 63 | + |
| 64 | + - id: issueparser-arm64 |
| 65 | + goos: linux |
| 66 | + goarch: arm64 |
| 67 | + ids: |
| 68 | + - issueparser |
| 69 | + image_templates: |
| 70 | + - "ghcr.io/defilan/issueparser:{{ .Version }}-arm64" |
| 71 | + - "ghcr.io/defilan/issueparser:latest-arm64" |
| 72 | + dockerfile: Dockerfile.goreleaser |
| 73 | + use: buildx |
| 74 | + build_flag_templates: |
| 75 | + - "--platform=linux/arm64" |
| 76 | + - "--label=org.opencontainers.image.created={{.Date}}" |
| 77 | + - "--label=org.opencontainers.image.title={{.ProjectName}}" |
| 78 | + - "--label=org.opencontainers.image.revision={{.FullCommit}}" |
| 79 | + - "--label=org.opencontainers.image.version={{.Version}}" |
| 80 | + - "--label=org.opencontainers.image.source={{.GitURL}}" |
| 81 | + |
| 82 | +docker_manifests: |
| 83 | + - name_template: "ghcr.io/defilan/issueparser:{{ .Version }}" |
| 84 | + image_templates: |
| 85 | + - "ghcr.io/defilan/issueparser:{{ .Version }}-amd64" |
| 86 | + - "ghcr.io/defilan/issueparser:{{ .Version }}-arm64" |
| 87 | + |
| 88 | + - name_template: "ghcr.io/defilan/issueparser:latest" |
| 89 | + image_templates: |
| 90 | + - "ghcr.io/defilan/issueparser:latest-amd64" |
| 91 | + - "ghcr.io/defilan/issueparser:latest-arm64" |
| 92 | + |
| 93 | +snapshot: |
| 94 | + version_template: "{{ incpatch .Version }}-next" |
| 95 | + |
| 96 | +changelog: |
| 97 | + sort: asc |
| 98 | + use: github |
| 99 | + |
| 100 | + filters: |
| 101 | + exclude: |
| 102 | + - "^docs:" |
| 103 | + - "^test:" |
| 104 | + - "^ci:" |
| 105 | + - "^chore:" |
| 106 | + - "merge conflict" |
| 107 | + - Merge pull request |
| 108 | + - Merge remote-tracking branch |
| 109 | + - Merge branch |
| 110 | + |
| 111 | + groups: |
| 112 | + - title: "New Features" |
| 113 | + regexp: "^feat:" |
| 114 | + order: 0 |
| 115 | + - title: "Bug Fixes" |
| 116 | + regexp: "^fix:" |
| 117 | + order: 1 |
| 118 | + - title: "Performance Improvements" |
| 119 | + regexp: "^perf:" |
| 120 | + order: 2 |
| 121 | + - title: "Other Changes" |
| 122 | + order: 999 |
| 123 | + |
| 124 | +release: |
| 125 | + github: |
| 126 | + owner: defilan |
| 127 | + name: issueparser |
| 128 | + |
| 129 | + name_template: "v{{.Version}}" |
| 130 | + |
| 131 | + draft: false |
| 132 | + |
| 133 | + replace_existing_draft: true |
| 134 | + |
| 135 | + # Keep Release Please's changelog, just add assets |
| 136 | + mode: keep-existing |
| 137 | + |
| 138 | + footer: | |
| 139 | + --- |
| 140 | +
|
| 141 | + ## Installation |
| 142 | +
|
| 143 | + ### Docker |
| 144 | + ```bash |
| 145 | + docker pull ghcr.io/defilan/issueparser:{{ .Version }} |
| 146 | + ``` |
| 147 | +
|
| 148 | + ### Manual Download |
| 149 | +
|
| 150 | + **macOS** |
| 151 | + ```bash |
| 152 | + # ARM64 (Apple Silicon) |
| 153 | + curl -L https://github.com/defilan/issueparser/releases/download/v{{ .Version }}/issueparser_{{ .Version }}_darwin_arm64.tar.gz | tar xz |
| 154 | + sudo mv issueparser /usr/local/bin/ |
| 155 | +
|
| 156 | + # AMD64 |
| 157 | + curl -L https://github.com/defilan/issueparser/releases/download/v{{ .Version }}/issueparser_{{ .Version }}_darwin_amd64.tar.gz | tar xz |
| 158 | + sudo mv issueparser /usr/local/bin/ |
| 159 | + ``` |
| 160 | +
|
| 161 | + **Linux** |
| 162 | + ```bash |
| 163 | + # AMD64 |
| 164 | + curl -L https://github.com/defilan/issueparser/releases/download/v{{ .Version }}/issueparser_{{ .Version }}_linux_amd64.tar.gz | tar xz |
| 165 | + sudo mv issueparser /usr/local/bin/ |
| 166 | +
|
| 167 | + # ARM64 |
| 168 | + curl -L https://github.com/defilan/issueparser/releases/download/v{{ .Version }}/issueparser_{{ .Version }}_linux_arm64.tar.gz | tar xz |
| 169 | + sudo mv issueparser /usr/local/bin/ |
| 170 | + ``` |
| 171 | +
|
| 172 | + ### Verify Installation |
| 173 | + ```bash |
| 174 | + issueparser --help |
| 175 | + ``` |
| 176 | +
|
| 177 | +metadata: |
| 178 | + mod_timestamp: "{{ .CommitTimestamp }}" |
0 commit comments