Skip to content

Commit 8d8940a

Browse files
committed
fix: add version tag
1 parent 52c4c6d commit 8d8940a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.goreleaser.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,50 +25,50 @@ dockers:
2525
goarch: arm
2626
goarm: 7
2727
image_templates:
28-
- "ghcr.io/hay-kot/dynodns:{{ .Version }}-armv7"
28+
- "ghcr.io/hay-kot/dynodns:v{{ .Version }}-armv7"
2929
- "ghcr.io/hay-kot/dynodns:latest-armv7"
3030
build_flag_templates:
3131
- "--platform=linux/arm/v7"
3232
- "--pull"
3333
- "--label=org.opencontainers.image.created={{.Date}}"
3434
- "--label=org.opencontainers.image.title={{.ProjectName}}"
3535
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
36-
- "--label=org.opencontainers.image.version={{.Version}}"
36+
- "--label=org.opencontainers.image.version=v{{.Version}}"
3737

3838
- use: buildx
3939
goos: linux
4040
goarch: arm64
4141
image_templates:
42-
- "ghcr.io/hay-kot/dynodns:{{ .Version }}-arm64"
42+
- "ghcr.io/hay-kot/dynodns:v{{ .Version }}-arm64"
4343
- "ghcr.io/hay-kot/dynodns:latest-arm64"
4444
build_flag_templates:
4545
- "--platform=linux/arm64"
4646
- "--pull"
4747
- "--label=org.opencontainers.image.created={{.Date}}"
4848
- "--label=org.opencontainers.image.title={{.ProjectName}}"
4949
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
50-
- "--label=org.opencontainers.image.version={{.Version}}"
50+
- "--label=org.opencontainers.image.version=v{{.Version}}"
5151

5252
- use: buildx
5353
goos: linux
5454
goarch: amd64
5555
image_templates:
56-
- "ghcr.io/hay-kot/dynodns:{{ .Version }}-amd64"
56+
- "ghcr.io/hay-kot/dynodns:v{{ .Version }}-amd64"
5757
- "ghcr.io/hay-kot/dynodns:latest-amd64"
5858
build_flag_templates:
5959
- "--platform=linux/amd64"
6060
- "--pull"
6161
- "--label=org.opencontainers.image.created={{.Date}}"
6262
- "--label=org.opencontainers.image.title={{.ProjectName}}"
6363
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
64-
- "--label=org.opencontainers.image.version={{.Version}}"
64+
- "--label=org.opencontainers.image.version=v{{.Version}}"
6565

6666
docker_manifests:
67-
- name_template: ghcr.io/hay-kot/dynodns:{{ .Version }}
67+
- name_template: ghcr.io/hay-kot/dynodns:v{{ .Version }}
6868
image_templates:
69-
- ghcr.io/hay-kot/dynodns:{{ .Version }}-amd64
70-
- ghcr.io/hay-kot/dynodns:{{ .Version }}-arm64
71-
- ghcr.io/hay-kot/dynodns:{{ .Version }}-armv7
69+
- ghcr.io/hay-kot/dynodns:v{{ .Version }}-amd64
70+
- ghcr.io/hay-kot/dynodns:v{{ .Version }}-arm64
71+
- ghcr.io/hay-kot/dynodns:v{{ .Version }}-armv7
7272
- name_template: ghcr.io/hay-kot/dynodns:latest
7373
image_templates:
7474
- ghcr.io/hay-kot/dynodns:latest-amd64
@@ -87,7 +87,7 @@ checksum:
8787
name_template: "checksums.txt"
8888

8989
snapshot:
90-
version_template: "{{ incpatch .Version }}-next"
90+
version_template: "v{{ incpatch .Version }}-next"
9191

9292
changelog:
9393
sort: asc

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func main() {
5555
Name: "log-style",
5656
Usage: "set the log style to console or json",
5757
Value: "console",
58-
EnvVars: []string{"LOG_STYLE"},
58+
EnvVars: []string{"LOG_STYLE", "LOG_FORMAT"},
5959
Category: "Options",
6060
},
6161
&cli.IntFlag{

0 commit comments

Comments
 (0)