Skip to content

Commit 6c2434e

Browse files
committed
fix: Use full SHA for image tags to match deploy
docker/metadata-action type=sha uses short SHA (7 chars) but ${{ github.sha }} in deploy is full SHA (40 chars). Using type=raw,value=${{ github.sha }} for exact match.
1 parent 4956ecd commit 6c2434e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
with:
8080
images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/api
8181
tags: |
82-
type=sha,prefix=
82+
type=raw,value=${{ github.sha }}
8383
type=raw,value=latest,enable={{is_default_branch}}
8484
8585
- name: Build and push
@@ -120,7 +120,7 @@ jobs:
120120
with:
121121
images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/sso
122122
tags: |
123-
type=sha,prefix=
123+
type=raw,value=${{ github.sha }}
124124
type=raw,value=latest,enable={{is_default_branch}}
125125
126126
- name: Build and push
@@ -165,7 +165,7 @@ jobs:
165165
with:
166166
images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/mcp
167167
tags: |
168-
type=sha,prefix=
168+
type=raw,value=${{ github.sha }}
169169
type=raw,value=latest,enable={{is_default_branch}}
170170
171171
- name: Build and push
@@ -206,7 +206,7 @@ jobs:
206206
with:
207207
images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/notification
208208
tags: |
209-
type=sha,prefix=
209+
type=raw,value=${{ github.sha }}
210210
type=raw,value=latest,enable={{is_default_branch}}
211211
212212
- name: Build and push
@@ -247,7 +247,7 @@ jobs:
247247
with:
248248
images: ${{ env.REGISTRY }}/${{ env.IMAGE_PREFIX }}/web
249249
tags: |
250-
type=sha,prefix=
250+
type=raw,value=${{ github.sha }}
251251
type=raw,value=latest,enable={{is_default_branch}}
252252
253253
- name: Build and push

0 commit comments

Comments
 (0)