Skip to content

Commit 63fe878

Browse files
authored
Update docker-hub-image.yml (#66)
1 parent b0a2d4e commit 63fe878

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/docker-hub-image.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
type=raw,value=latest,enable={{is_default_branch}}
6262
- name: Extract metadata (tags, labels) for Docker
6363
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} && github.event_name != 'pull_request'
64-
id: meta
64+
id: meta-tag
6565
uses: docker/metadata-action@v5
6666
with:
6767
images: ${{ matrix.image }}
@@ -78,3 +78,11 @@ jobs:
7878
push: ${{ github.event_name != 'pull_request' }}
7979
tags: ${{ steps.meta.outputs.tags }}
8080
labels: ${{ steps.meta.outputs.labels }}
81+
- name: Build and push tags
82+
uses: docker/build-push-action@v5
83+
with:
84+
context: .
85+
file: ${{ matrix.dockerfile }}
86+
push: ${{ ! startsWith(github.ref, 'refs/tags/') }} && github.event_name != 'pull_request'
87+
tags: ${{ steps.meta-tag.outputs.tags }}
88+
labels: ${{ steps.meta-tag.outputs.labels }}

0 commit comments

Comments
 (0)