Skip to content

Commit

Permalink
feat(): fix GitHub actions metadata set
Browse files Browse the repository at this point in the history
  • Loading branch information
e7d committed Apr 5, 2024
1 parent efff65f commit aa4049a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,7 +54,6 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=$repo.default_branch
type=ref,event=pr
- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit aa4049a

Please sign in to comment.