Skip to content

Commit

Permalink
fix(goreleaser): use DOCKERHUB_REPOSITORY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
fyvri committed Dec 18, 2024
1 parent cc82ed8 commit fbc984a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions deployments/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: 2
project_name: "{{ .Env.DOCKERHUB_REPOSITORY }}"
project_name: go-qris
env:
- GO111MODULE=on

Expand Down Expand Up @@ -34,30 +34,30 @@ archives:

dockers:
- image_templates:
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:{{ .Tag }}-amd64"
use: buildx
dockerfile: ./deployments/Dockerfile
build_flag_templates:
- "--platform=linux/amd64"

- image_templates:
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:latest"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:{{ .Tag }}-arm64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:latest"
use: buildx
dockerfile: ./deployments/Dockerfile
goarch: arm64
build_flag_templates:
- --platform=linux/arm64/v8

docker_manifests:
- name_template: "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:{{ .Tag }}"
- name_template: "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:{{ .Tag }}"
image_templates:
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
- name_template: "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:latest"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:{{ .Tag }}-amd64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:{{ .Tag }}-arm64"
- name_template: "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:latest"
image_templates:
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:{{ .Tag }}-amd64"
- "docker.io/{{ .Env.DOCKERHUB_USERNAME }}/{{ .Env.DOCKERHUB_REPOSITORY }}:{{ .Tag }}-arm64"

changelog:
sort: asc
Expand Down

0 comments on commit fbc984a

Please sign in to comment.