From d60f17430519e3a897f6479152ea9f23a6ac2686 Mon Sep 17 00:00:00 2001 From: itchyny Date: Wed, 16 Sep 2020 03:36:39 +0900 Subject: [PATCH] Update example action for labels Signed-off-by: itchyny --- .github/workflows/example.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 1f05215..e784639 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -68,10 +68,11 @@ jobs: tags: ${{ steps.prep.outputs.tags }} labels: | org.opencontainers.image.created=${{ steps.prep.outputs.created }} - org.opencontainers.image.source=${{ github.repositoryUrl }} + org.opencontainers.image.url=${{ github.event.repository.html_url }} + org.opencontainers.image.source=${{ github.event.repository.clone_url }} org.opencontainers.image.version=${{ steps.prep.outputs.version }} org.opencontainers.image.revision=${{ github.sha }} - org.opencontainers.image.licenses=${{ github.event.repository.license.name }} + org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }} - name: Build and push to local registry uses: ./ @@ -82,10 +83,11 @@ jobs: tags: ${{ steps.prep.outputs.tags }} labels: | org.opencontainers.image.created=${{ steps.prep.outputs.created }} - org.opencontainers.image.source=${{ github.repositoryUrl }} + org.opencontainers.image.url=${{ github.event.repository.html_url }} + org.opencontainers.image.source=${{ github.event.repository.clone_url }} org.opencontainers.image.version=${{ steps.prep.outputs.version }} org.opencontainers.image.revision=${{ github.sha }} - org.opencontainers.image.licenses=${{ github.event.repository.license.name }} + org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }} - name: Inspect image run: |