mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-08 23:42:53 +01:00
Add build_flag_templates to .goreleaser.yaml
Extended the .goreleaser.yaml configuration with build_flag_templates options for the Docker image. These new flags introduce image labels for open containers, which provides more detailed image information including the creation date, project name, revision, and version.
This commit is contained in:
parent
48c352f998
commit
f871dfb82b
1 changed files with 8 additions and 1 deletions
|
@ -101,4 +101,11 @@ dockers:
|
|||
- "wneessen/apg-go:{{ .Tag }}"
|
||||
- "wneessen/apg-go:v{{ .Major }}"
|
||||
- "wneessen/apg-go:v{{ .Major }}.{{ .Minor }}"
|
||||
- "wneessen/apg-go:latest"
|
||||
- "wneessen/apg-go:latest"
|
||||
build_flag_templates:
|
||||
- "--pull"
|
||||
- "--network=host"
|
||||
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
||||
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||
- "--label=org.opencontainers.image.version={{.Version}}"
|
Loading…
Reference in a new issue