Skip to content

Commit f05b42b

Browse files
committed
fix: Docker workflow tag format issue
- Fix invalid tag format causing build failure - Use proper suffix/prefix for SHA tags - Ensure Docker tag compliance
1 parent 8736972 commit f05b42b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
with:
3636
images: sensenetcsp/sn-client
3737
tags: |
38-
# Branch name
39-
type=ref,event=branch
38+
# Branch name (replace slashes with hyphens)
39+
type=ref,event=branch,suffix=-{{sha}}
4040
# Latest tag for main branch
4141
type=raw,value=latest,enable={{is_default_branch}}
4242
# PR number for pull requests
4343
type=ref,event=pr
44-
# Short SHA
45-
type=sha,prefix={{branch}}-
44+
# Short SHA for current commit
45+
type=sha,prefix=sha-
4646
4747
- name: Login to DockerHub
4848
if: steps.check_dockerfile.outputs.dockerfile_exists == 'true'

0 commit comments

Comments
 (0)