Skip to content

Commit

Permalink
fix actions (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyToshka authored Jan 8, 2024
1 parent e249f8e commit b193cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-hub-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
tags: |
type=raw,value=latest,enable={{is_default_branch}}
- name: Extract metadata (tags, labels) for Docker
if: github.ref != 'refs/heads/main' || github.event_name != 'pull_request'
if: github.ref_type == 'tag' || github.event_name != 'pull_request'
continue-on-error: true
id: meta-tag
uses: docker/metadata-action@v5
Expand All @@ -86,6 +86,6 @@ jobs:
with:
context: .
file: ${{ matrix.dockerfile }}
push: ${{ ! startsWith(github.ref, 'refs/tags/') }}
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta-tag.outputs.tags }}
labels: ${{ steps.meta-tag.outputs.labels }}

0 comments on commit b193cd2

Please sign in to comment.