From 02c8393bc63bb1b9dc00b544948920fbcdbabc9b Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 9 Jan 2021 14:07:05 -0600 Subject: [PATCH] ci: Added opencontainers labels --- .github/workflows/build-multiarch.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-multiarch.yml b/.github/workflows/build-multiarch.yml index 1a1baf3a..ee0083c7 100644 --- a/.github/workflows/build-multiarch.yml +++ b/.github/workflows/build-multiarch.yml @@ -4,7 +4,7 @@ on: branches: - multiarch - multiarch-latest - - "test/multiarch-*" + - test/multiarch/* tags: - "[0-9]+.[0-9]+.[0-9]+-multiarch" - "[0-9]+.[0-9]+.[0-9]+-multiarch-latest" @@ -33,6 +33,7 @@ jobs: TAGS="${DOCKER_IMAGE}:${VERSION//\//-}" echo ::set-output name=tags::${TAGS} echo ::set-output name=cache_from::${TAGS} + echo ::set-output name=version::${VERSION//\//-} echo ::set-output name=cache_version::${VERSION//\//-} - name: Setup Docker Buildx @@ -66,6 +67,11 @@ jobs: tags: ${{ steps.prep.outputs.tags }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache + labels: | + org.opencontainers.image.documentation=https://github.com/itzg/docker-minecraft-server + org.opencontainers.image.source=https://github.com/itzg/docker-minecraft-server + org.opencontainers.image.version=${{ steps.prep.outputs.version }} + org.opencontainers.image.revision=${{ github.sha }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }}