@@ -43,11 +43,11 @@ nfpms:
43
43
package_name : pig
44
44
file_name_template : >-
45
45
{{ .PackageName }}
46
- {{- if eq .Format "deb" }}_{{ .Version }}_
46
+ {{- if eq .Format "deb" }}_{{ .Version }}-1_
47
47
{{- if eq .Arch "amd64" }}amd64
48
48
{{- else if eq .Arch "arm64" }}arm64
49
49
{{- else }}{{ .Arch }}{{ end }}
50
- {{- else if eq .Format "rpm" }}-{{ .Version }}.
50
+ {{- else if eq .Format "rpm" }}-{{ .Version }}-1 .
51
51
{{- if eq .Arch "amd64" }}x86_64
52
52
{{- else if eq .Arch "arm64" }}aarch64
53
53
{{- else }}{{ .Arch }}{{ end }}
@@ -67,62 +67,11 @@ nfpms:
67
67
dst : /usr/share/doc/pig/LICENSE
68
68
file_info :
69
69
mode : 0644
70
+ release : " 1"
70
71
rpm :
71
72
summary : " PostgreSQL Package Manger CLI"
72
73
group : " Applications/Databases"
73
74
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"
126
75
127
76
checksum :
128
77
name_template : ' checksums.txt'
0 commit comments