Skip to content

Commit d4e8187

Browse files
committed
use standard rpm/deb release number
1 parent 5f410aa commit d4e8187

File tree

4 files changed

+20
-58
lines changed

4 files changed

+20
-58
lines changed

.goreleaser.yml

Lines changed: 3 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ nfpms:
4343
package_name: pig
4444
file_name_template: >-
4545
{{ .PackageName }}
46-
{{- if eq .Format "deb" }}_{{ .Version }}_
46+
{{- if eq .Format "deb" }}_{{ .Version }}-1_
4747
{{- if eq .Arch "amd64" }}amd64
4848
{{- else if eq .Arch "arm64" }}arm64
4949
{{- else }}{{ .Arch }}{{ end }}
50-
{{- else if eq .Format "rpm" }}-{{ .Version }}.
50+
{{- else if eq .Format "rpm" }}-{{ .Version }}-1.
5151
{{- if eq .Arch "amd64" }}x86_64
5252
{{- else if eq .Arch "arm64" }}aarch64
5353
{{- else }}{{ .Arch }}{{ end }}
@@ -67,62 +67,11 @@ nfpms:
6767
dst: /usr/share/doc/pig/LICENSE
6868
file_info:
6969
mode: 0644
70+
release: "1"
7071
rpm:
7172
summary: "PostgreSQL Package Manger CLI"
7273
group: "Applications/Databases"
7374

74-
dockers:
75-
- id: pig-docker
76-
goos: linux
77-
goarch: amd64
78-
image_templates:
79-
- "pgsty/pig:latest-amd64"
80-
- "pgsty/pig:{{ .Version }}-amd64"
81-
- "pgsty/pig:{{ .Major }}.{{ .Minor }}-amd64"
82-
dockerfile: Dockerfile
83-
use: buildx
84-
build_flag_templates:
85-
- "--platform=linux/amd64"
86-
- "--label=org.opencontainers.image.title=pig"
87-
- "--label=org.opencontainers.image.description=CLI Tools for Pigsty and PostgreSQL"
88-
- "--label=org.opencontainers.image.vendor=Vonng"
89-
- "--label=org.opencontainers.image.version={{ .Version }}"
90-
- "--label=org.opencontainers.image.created={{ .Date }}"
91-
- "--label=org.opencontainers.image.source=https://github.com/pgsty/pig"
92-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
93-
94-
- id: pig-docker-arm64
95-
goos: linux
96-
goarch: arm64
97-
image_templates:
98-
- "pgsty/pig:latest-arm64"
99-
- "pgsty/pig:{{ .Version }}-arm64"
100-
- "pgsty/pig:{{ .Major }}.{{ .Minor }}-arm64"
101-
dockerfile: Dockerfile
102-
use: buildx
103-
build_flag_templates:
104-
- "--platform=linux/arm64"
105-
- "--label=org.opencontainers.image.title=pig"
106-
- "--label=org.opencontainers.image.description=CLI Tools for Pigsty and PostgreSQL"
107-
- "--label=org.opencontainers.image.vendor=Vonng"
108-
- "--label=org.opencontainers.image.version={{ .Version }}"
109-
- "--label=org.opencontainers.image.created={{ .Date }}"
110-
- "--label=org.opencontainers.image.source=https://github.com/pgsty/pig"
111-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
112-
113-
docker_manifests:
114-
- name_template: "pgsty/pig:latest"
115-
image_templates:
116-
- "pgsty/pig:latest-amd64"
117-
- "pgsty/pig:latest-arm64"
118-
- name_template: "pgsty/pig:{{ .Version }}"
119-
image_templates:
120-
- "pgsty/pig:{{ .Version }}-amd64"
121-
- "pgsty/pig:{{ .Version }}-arm64"
122-
- name_template: "pgsty/pig:{{ .Major }}.{{ .Minor }}"
123-
image_templates:
124-
- "pgsty/pig:{{ .Major }}.{{ .Minor }}-amd64"
125-
- "pgsty/pig:{{ .Major }}.{{ .Minor }}-arm64"
12675

12776
checksum:
12877
name_template: 'checksums.txt'

cmd/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var updateCmd = &cobra.Command{
2222
2323
pig update # update pig to the latest version
2424
pig update [-v version] # update pig to given version
25-
pig update -v 0.3.0 # update pig to version 0.3.0
25+
pig update -v 0.6.1 # update pig to version 0.6.1
2626
`,
2727
RunE: func(cmd *cobra.Command, args []string) error {
2828
return get.UpdatePig(updateVersion, updateRegion)

docs/release.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ breadcrumbs: false
88

99
| Version | Date | Summary | GitHub |
1010
|:---------------:|:----------:|--------------------------------------|:----------------------------------------------------------:|
11-
| [v0.6.1](#v061) | 2025-08-13 | Use PGDG mirror in china | [v0.6.1](https://github.com/pgsty/pig/releases/tag/v0.6.1) |
11+
| [v0.6.1](#v061) | 2025-08-13 | CI/CD pipeline, PGDG mirror in china | [v0.6.1](https://github.com/pgsty/pig/releases/tag/v0.6.1) |
1212
| [v0.5.0](#v050) | 2025-06-30 | 422 extension, new extension catalog | [v0.6.0](https://github.com/pgsty/pig/releases/tag/v0.5.0) |
1313
| [v0.4.2](#v042) | 2025-05-27 | 421 extension, halo & oriole deb | [v0.4.2](https://github.com/pgsty/pig/releases/tag/v0.4.2) |
1414
| [v0.4.1](#v041) | 2025-05-07 | 414 extension, pg18 alias support | [v0.4.1](https://github.com/pgsty/pig/releases/tag/v0.4.1) |
@@ -28,7 +28,6 @@ breadcrumbs: false
2828
| [v0.0.1](#v001) | 2024-12-23 | Genesis Release | [v0.0.1](https://github.com/pgsty/pig/releases/tag/v0.0.1) |
2929

3030

31-
3231
## v0.6.1
3332

3433
- Add el10 and debian 13 trixie support stub
@@ -38,7 +37,7 @@ breadcrumbs: false
3837
- Remove unused `pgdg-el10fix` repo
3938
- Use pigsty mirror for WiltonDB
4039
- Add EL 10 dedicate epel repo (with minor suffix)
41-
40+
- pig version output with go build environment
4241

4342

4443
## v0.6.0

docs/release.zh.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ breadcrumbs: false
88

99
| 版本 | 日期 | 摘要 | GitHub |
1010
|:---------------:|:----------:|--------------------------------|:----------------------------------------------------------:|
11+
| [v0.6.1](#v061) | 2025-08-13 | 添加 CI/CD 管道,使用 PIGSTY PGDG 仓库 | [v0.6.1](https://github.com/pgsty/pig/releases/tag/v0.6.1) |
1112
| [v0.6.0](#v060) | 2025-07-17 | 423 个扩展,percona pg_tde,mcp 工具箱 | [v0.6.0](https://github.com/pgsty/pig/releases/tag/v0.6.0) |
1213
| [v0.5.0](#v050) | 2025-06-30 | 422 个扩展,新的扩展目录 | [v0.6.0](https://github.com/pgsty/pig/releases/tag/v0.5.0) |
1314
| [v0.4.2](#v042) | 2025-05-27 | 421 个扩展,halo 和 oriole deb | [v0.4.2](https://github.com/pgsty/pig/releases/tag/v0.4.2) |
@@ -27,6 +28,19 @@ breadcrumbs: false
2728
| [v0.1.0](#v010) | 2024-12-29 | repo、ext、sty 和自更新 | [v0.1.0](https://github.com/pgsty/pig/releases/tag/v0.1.0) |
2829
| [v0.0.1](#v001) | 2024-12-23 | 创世发布 | [v0.0.1](https://github.com/pgsty/pig/releases/tag/v0.0.1) |
2930

31+
## v0.6.1
32+
33+
- 新增 el10 与 debian 13 trixie 的支持存根
34+
- 专门的新文档网站: https://pig.pgsty.com
35+
- 使用 go 1.25 重新构建,新增 CI/CD 管道
36+
- 在中国大陆使用 PIGSTY PGDG 镜像
37+
- 移除空的 `pgdg-el10fix` 仓库
38+
- 使用 Pigsty WiltonDB 镜像
39+
- 修复 EL 10 专用的 EPEL 仓库
40+
- pig version 输出构建环境信息
41+
42+
43+
3044

3145
## v0.6.0
3246

0 commit comments

Comments
 (0)