We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622b342 commit c10559aCopy full SHA for c10559a
.github/workflows/docker-hub-image.yml
@@ -52,7 +52,7 @@ jobs:
52
username: ${{ secrets.DOCKER_HUB_USERNAME }}
53
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
54
- name: Extract metadata (tags, labels) for Docker
55
- if: github.event_name != 'pull_request'
+ if: github.ref == 'refs/heads/main'
56
id: meta
57
uses: docker/metadata-action@v5
58
with:
@@ -75,7 +75,7 @@ jobs:
75
76
context: .
77
file: ${{ matrix.dockerfile }}
78
- push: ${{ github.event_name != 'pull_request' }}
+ push: ${{ github.ref == 'refs/heads/main' }}
79
tags: ${{ steps.meta.outputs.tags }}
80
labels: ${{ steps.meta.outputs.labels }}
81
- name: Build and push tags
0 commit comments