Skip to content

Commit

Permalink
Merge pull request #12 from chatwork/fix_goreleaser
Browse files Browse the repository at this point in the history
fix image tag for ci
  • Loading branch information
cw-sakamoto authored Nov 29, 2023
2 parents e4f937e + 1f2b050 commit 30b06c0
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions goreleaser.yml → goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,44 +27,32 @@ dockers:
goarch: amd64
image_templates:
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:canary-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Version }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:v{{ .Version }}-amd64"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.version=v{{.Version}}"
- use: buildx
goos: linux
goarch: arm64
image_templates:
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:canary-arm64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Version }}-arm64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}-arm64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-arm64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:v{{ .Version }}-arm64"
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.version=v{{.Version}}"

docker_manifests:
- name_template: "{{ .Env.REGISTRY }}/{{ .ProjectName }}:canary"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:canary-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:canary-arm64"
- name_template: "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Version }}"
- name_template: "{{ .Env.REGISTRY }}/{{ .ProjectName }}:v{{ .Version }}"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Version }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Version }}-arm64"
- name_template: "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}-arm64"
- name_template: "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}-arm64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:v{{ .Version }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .ProjectName }}:v{{ .Version }}-arm64"

0 comments on commit 30b06c0

Please sign in to comment.