Skip to content

Commit ff89368

Browse files
tonyxiaoclaude
andcommitted
ci: only tag Docker image as "latest" on main branch
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude
1 parent eb20481 commit ff89368

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,4 +890,4 @@ jobs:
890890
run: bash scripts/promote-to-dockerhub.sh
891891
env:
892892
GHCR_IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
893-
DOCKERHUB_TAGS: ${{ steps.tag.outputs.name }} latest
893+
DOCKERHUB_TAGS: ${{ steps.tag.outputs.name }}${{ github.ref_name == 'main' && ' latest' || '' }}

0 commit comments

Comments
 (0)