Skip to content

Commit bca2fae

Browse files
committed
Fixed repository owner
1 parent 4a43c1c commit bca2fae

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.github/workflows/go.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ jobs:
3636
args: release --rm-dist
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GITHUB_OWNER: ${{ github.repository_owner }}

.goreleaser.yaml

+17-17
Original file line numberDiff line numberDiff line change
@@ -19,51 +19,51 @@ changelog:
1919
- '^test:'
2020
dockers:
2121
- image_templates:
22-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-amd64
22+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-amd64
2323
build_flag_templates:
2424
- --platform=linux/amd64
2525
- --label=org.opencontainers.image.title={{ .ProjectName }}
2626
- --label=org.opencontainers.image.description={{ .ProjectName }}
27-
- --label=org.opencontainers.image.url=https://github.com/Collabora/k8s-socketcan/
28-
- --label=org.opencontainers.image.source=https://github.com/Collabora/k8s-socketcan/
27+
- --label=org.opencontainers.image.url=https://github.com/{{ .Env.GITHUB_OWNER }}/k8s-socketcan/
28+
- --label=org.opencontainers.image.source=https://github.com/{{ .Env.GITHUB_OWNER }}/k8s-socketcan/
2929
- --label=org.opencontainers.image.version={{ .Version }}
3030
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
3131
- --label=org.opencontainers.image.revision={{ .FullCommit }}
3232
- --label=org.opencontainers.image.licenses=MIT
3333
- image_templates:
34-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-arm64v8
34+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-arm64v8
3535
goarch: arm64
3636
build_flag_templates:
3737
- --platform=linux/arm64/v8
3838
- --label=org.opencontainers.image.title={{ .ProjectName }}
3939
- --label=org.opencontainers.image.description={{ .ProjectName }}
40-
- --label=org.opencontainers.image.url=https://github.com/Collabora/k8s-socketcan/
41-
- --label=org.opencontainers.image.source=https://github.com/Collabora/k8s-socketcan/
40+
- --label=org.opencontainers.image.url=https://github.com/{{ .Env.GITHUB_OWNER }}/k8s-socketcan/
41+
- --label=org.opencontainers.image.source=https://github.com/{{ .Env.GITHUB_OWNER }}/k8s-socketcan/
4242
- --label=org.opencontainers.image.version={{ .Version }}
4343
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
4444
- --label=org.opencontainers.image.revision={{ .FullCommit }}
4545
- --label=org.opencontainers.image.licenses=MIT
4646
- image_templates:
47-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-386
47+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-386
4848
goarch: "386"
4949
build_flag_templates:
5050
- --platform=linux/386
5151
- --label=org.opencontainers.image.title={{ .ProjectName }}
5252
- --label=org.opencontainers.image.description={{ .ProjectName }}
53-
- --label=org.opencontainers.image.url=https://github.com/Collabora/k8s-socketcan/
54-
- --label=org.opencontainers.image.source=https://github.com/Collabora/k8s-socketcan/
53+
- --label=org.opencontainers.image.url=https://github.com/{{ .Env.GITHUB_OWNER }}/k8s-socketcan/
54+
- --label=org.opencontainers.image.source=https://github.com/{{ .Env.GITHUB_OWNER }}/k8s-socketcan/
5555
- --label=org.opencontainers.image.version={{ .Version }}
5656
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
5757
- --label=org.opencontainers.image.revision={{ .FullCommit }}
5858
- --label=org.opencontainers.image.licenses=MIT
5959
docker_manifests:
60-
- name_template: ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}
60+
- name_template: ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}
6161
image_templates:
62-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-amd64
63-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-arm64v8
64-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-386
65-
- name_template: ghcr.io/Collabora/{{ .ProjectName }}:latest
62+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-amd64
63+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-arm64v8
64+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-386
65+
- name_template: ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:latest
6666
image_templates:
67-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-amd64
68-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-arm64v8
69-
- ghcr.io/Collabora/{{ .ProjectName }}:{{ .Version }}-386
67+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-amd64
68+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-arm64v8
69+
- ghcr.io/{{ .Env.GITHUB_OWNER }}/{{ .ProjectName }}:{{ .Version }}-386

0 commit comments

Comments
 (0)