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 }}