From bcf9d2608624bb083af3937e8221183803520781 Mon Sep 17 00:00:00 2001 From: cstantin <4959583+cstantin@users.noreply.github.com> Date: Wed, 24 Jun 2026 13:18:27 +0300 Subject: [PATCH] chore: use GITHUB_REPOSITORY env for Docker images and OCI label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed hardcoded owner/name from release.github – not needed when using GITHUB_TOKEN. - Replaced explicit repo strings with {{ .Env.GITHUB_REPOSITORY }} for Docker image names and the org.opencontainers.image.source label. - Makes the config reusable across forks – no manual edits required when moving the project. --- .goreleaser.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 29ac04f..f6c4df1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -145,9 +145,6 @@ changelog: - 'Merge branch' release: - github: - owner: samosvalishe - name: free-turn-proxy prerelease: auto mode: replace draft: false @@ -159,7 +156,7 @@ dockers_v2: - server dockerfile: Dockerfile.goreleaser images: - - ghcr.io/samosvalishe/free-turn-proxy + - "ghcr.io/samosvalishe/{{ .Env.GITHUB_REPOSITORY }}" tags: - "{{ .Version }}" - '{{ if not .Prerelease }}latest{{ end }}' @@ -167,7 +164,7 @@ dockers_v2: - linux/amd64 - linux/arm64 labels: - org.opencontainers.image.source: https://github.com/samosvalishe/free-turn-proxy + org.opencontainers.image.source: "https://github.com/samosvalishe/{{ .Env.GITHUB_REPOSITORY }}" org.opencontainers.image.version: "{{ .Version }}" org.opencontainers.image.revision: "{{ .FullCommit }}" org.opencontainers.image.created: "{{ .Date }}"