Skip to content

Commit

Permalink
ci: fix license, ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Sep 22, 2023
1 parent 4e68e75 commit e2ed0bc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ builds:
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Revision}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
- -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
- -X github.com/prometheus/common/version.Version={{ .Version }}
- -X github.com/prometheus/common/version.Revision={{ .FullCommit }}
- -X github.com/prometheus/common/version.Branch={{ .Branch }}
- -X github.com/prometheus/common/version.BuildDate={{ time "2006-01-02T15:04:05Z07:00" }}

archives:
- id: main
Expand Down Expand Up @@ -55,7 +54,7 @@ dockers:
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.licenses=Apache-2.0
- image_templates:
- "ghcr.io/doodlescheduling/{{ .ProjectName }}:v{{ .Version }}-arm64v8"
goarch: arm64
Expand All @@ -72,7 +71,7 @@ dockers:
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.licenses=Apache-2.0

docker_manifests:
- name_template: ghcr.io/doodlescheduling/{{ .ProjectName }}:v{{ .Version }}
Expand Down

0 comments on commit e2ed0bc

Please sign in to comment.