From fbc984aa80b7e21b5e1ea19e2c6c5dde8afe6ecb Mon Sep 17 00:00:00 2001 From: Azis Alvriyanto Date: Wed, 18 Dec 2024 23:38:00 +0700 Subject: [PATCH] fix(goreleaser): use DOCKERHUB_REPOSITORY env var --- deployments/goreleaser.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/deployments/goreleaser.yml b/deployments/goreleaser.yml index 92885c4..f408d9c 100644 --- a/deployments/goreleaser.yml +++ b/deployments/goreleaser.yml @@ -1,5 +1,5 @@ version: 2 -project_name: "{{ .Env.DOCKERHUB_REPOSITORY }}" +project_name: go-qris env: - GO111MODULE=on @@ -34,15 +34,15 @@ 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 @@ -50,14 +50,14 @@ dockers: - --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