From 3c6bad5f825a8506bcc3fa4537fba7e3617c9243 Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 8 Nov 2020 20:05:48 +0100 Subject: [PATCH 1/2] Set container label "org.opencontainers.image.source" to establish a repository connection on github Signed-off-by: Andy Grunwald --- UPGRADE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPGRADE.md b/UPGRADE.md index 901853d..00799f7 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -140,7 +140,7 @@ steps: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.prep.outputs.tags }} labels: | - org.opencontainers.image.source=${{ github.event.repository.clone_url }} + org.opencontainers.image.source=https://github.com/${{ github.repository }} org.opencontainers.image.created=${{ steps.prep.outputs.created }} org.opencontainers.image.revision=${{ github.sha }} ``` From ae5ee4ca11499516e3151c124d598a5828d665ac Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 8 Nov 2020 20:22:47 +0100 Subject: [PATCH 2/2] Update UPGRADE.md: Use github.event.repository.html_url to craft the repository url Co-authored-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> Signed-off-by: Andy Grunwald --- UPGRADE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPGRADE.md b/UPGRADE.md index 00799f7..759c622 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -140,7 +140,7 @@ steps: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.prep.outputs.tags }} labels: | - org.opencontainers.image.source=https://github.com/${{ github.repository }} + org.opencontainers.image.source=${{ github.event.repository.html_url }} org.opencontainers.image.created=${{ steps.prep.outputs.created }} org.opencontainers.image.revision=${{ github.sha }} ```