Skip to content

Commit 93f9152

Browse files
committed
refactor: remove SHA-only Docker tags
- Remove standalone SHA tags to prevent DockerHub clutter - Keep clean branch names and branch+SHA tags for useful scenarios - Maintain manageable tag strategy for long-term development
1 parent 12723ab commit 93f9152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ jobs:
3838
with:
3939
images: sensenetcsp/sn-client
4040
tags: |
41-
# Branch name (replace slashes with hyphens)
41+
# Clean branch name (e.g., feature-docker-containerization)
42+
type=ref,event=branch
43+
# Branch name with SHA (e.g., feature-docker-containerization-abc1234)
4244
type=ref,event=branch,suffix=-{{sha}}
4345
# Latest tag for main branch
4446
type=raw,value=latest,enable={{is_default_branch}}
4547
# PR number for pull requests
4648
type=ref,event=pr
47-
# Short SHA for current commit
48-
type=sha,prefix=sha-
4949
5050
- name: Login to DockerHub
5151
if: steps.check_dockerfile.outputs.dockerfile_exists == 'true'

0 commit comments

Comments
 (0)