chore: use GITHUB_REPOSITORY env for Docker images and OCI label

- 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.
This commit is contained in:
cstantin
2026-06-24 13:18:27 +03:00
committed by GitHub
parent 3c657fe565
commit bcf9d26086
+2 -5
View File
@@ -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 }}"