Skip to content

Commit 8b979ea

Browse files
committed
feat: use more variables in .goreleaser.yaml
1 parent 449e3ac commit 8b979ea

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.goreleaser.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,28 @@ signs:
3838

3939
dockers:
4040
- image_templates:
41-
- "ghcr.io/smlx/go-cli-github/go-cli-github:{{ .Version }}-amd64"
41+
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:{{ .Version }}-amd64"
4242
use: buildx
43-
dockerfile: deploy/go-cli-github/Dockerfile
43+
dockerfile: deploy/{{ .Binary }}/Dockerfile
4444
build_flag_templates:
4545
- "--platform=linux/amd64"
4646
- image_templates:
47-
- "ghcr.io/smlx/go-cli-github/go-cli-github:{{ .Version }}-arm64v8"
47+
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:{{ .Version }}-arm64v8"
4848
use: buildx
4949
goarch: arm64
50-
dockerfile: deploy/go-cli-github/Dockerfile
50+
dockerfile: deploy/{{ .Binary }}/Dockerfile
5151
build_flag_templates:
5252
- "--platform=linux/arm64/v8"
5353

5454
docker_manifests:
55-
- name_template: "ghcr.io/smlx/go-cli-github/go-cli-github:{{ .Version }}"
55+
- name_template: "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:{{ .Version }}"
5656
image_templates:
57-
- "ghcr.io/smlx/go-cli-github/go-cli-github:{{ .Version }}-amd64"
58-
- "ghcr.io/smlx/go-cli-github/go-cli-github:{{ .Version }}-arm64v8"
59-
- name_template: "ghcr.io/smlx/go-cli-github/go-cli-github:latest"
57+
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:{{ .Version }}-amd64"
58+
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:{{ .Version }}-arm64v8"
59+
- name_template: "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:latest"
6060
image_templates:
61-
- "ghcr.io/smlx/go-cli-github/go-cli-github:{{ .Version }}-amd64"
62-
- "ghcr.io/smlx/go-cli-github/go-cli-github:{{ .Version }}-arm64v8"
61+
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:{{ .Version }}-amd64"
62+
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/{{ .Binary }}:{{ .Version }}-arm64v8"
6363

6464
docker_signs:
6565
- args:

0 commit comments

Comments
 (0)