From 8d7fa04f07e6cbdd6d1efb7e3a3e56d7da302cc5 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 31 Oct 2020 20:16:51 +0100 Subject: [PATCH] Use repo.html_url for org.opencontainers.image.source label to be able to display README on GHCR --- dist/index.js | 2 +- src/meta.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 78fefa3..d47f00b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -246,7 +246,7 @@ class Meta { `org.opencontainers.image.title=${this.repo.name || ''}`, `org.opencontainers.image.description=${this.repo.description || ''}`, `org.opencontainers.image.url=${this.repo.html_url || ''}`, - `org.opencontainers.image.source=${this.repo.clone_url || ''}`, + `org.opencontainers.image.source=${this.repo.html_url || ''}`, `org.opencontainers.image.version=${this.version().version || ''}`, `org.opencontainers.image.created=${this.date.toISOString()}`, `org.opencontainers.image.revision=${this.context.sha || ''}`, diff --git a/src/meta.ts b/src/meta.ts index 5c36a87..31624a6 100644 --- a/src/meta.ts +++ b/src/meta.ts @@ -91,7 +91,7 @@ export class Meta { `org.opencontainers.image.title=${this.repo.name || ''}`, `org.opencontainers.image.description=${this.repo.description || ''}`, `org.opencontainers.image.url=${this.repo.html_url || ''}`, - `org.opencontainers.image.source=${this.repo.clone_url || ''}`, + `org.opencontainers.image.source=${this.repo.html_url || ''}`, `org.opencontainers.image.version=${this.version().version || ''}`, `org.opencontainers.image.created=${this.date.toISOString()}`, `org.opencontainers.image.revision=${this.context.sha || ''}`,