Skip to content

Commit e6faf8f

Browse files
authored
Add docker push based ongit tag (#69)
* push to github based on github tag * fix actions
1 parent c10559a commit e6faf8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
tags: |
6161
type=raw,value=latest,enable={{is_default_branch}}
6262
- name: Extract metadata (tags, labels) for Docker
63-
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} && github.event_name != 'pull_request'
63+
if: github.ref != 'refs/heads/main' || github.event_name != 'pull_request'
6464
id: meta-tag
6565
uses: docker/metadata-action@v5
6666
with:
@@ -69,7 +69,6 @@ jobs:
6969
type=semver,pattern={{version}}
7070
type=semver,pattern={{major}}.{{minor}}
7171
type=semver,pattern={{major}}
72-
type=sha
7372
- name: Build and push
7473
uses: docker/build-push-action@v5
7574
with:

0 commit comments

Comments
 (0)