From b2b6bdf5a1d4733b2813267ac0f545da9876b049 Mon Sep 17 00:00:00 2001 From: e7d Date: Fri, 5 Apr 2024 12:08:27 +0200 Subject: [PATCH] feat(): fix GitHub actions metadata set --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 717a487..cbd8f55 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -45,7 +45,7 @@ jobs: with: images: | name=${{ vars.GHCR_IMAGE }} - name=${{ vars.DOCKERHUB_IMAGE }},enable=${{ github.event_name != 'pull_request' }} + name=${{ vars.DOCKERHUB_IMAGE }},enable=${{ startsWith(github.ref, 'refs/tags/') }} labels: | org.opencontainers.image.title=docker-diskmark org.opencontainers.image.description=A disk benchmarking tool for Docker @@ -55,7 +55,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=edge,branch=$repo.default_branch - type=ref,event=pr + type=sha,prefix=,suffix=,format=short - name: Build and push Docker image uses: docker/build-push-action@v5 with: