fix(craft): allow more lenient tag names (for versioning)#7921
fix(craft): allow more lenient tag names (for versioning)#7921rohoswagger merged 1 commit intomainfrom
Conversation
Greptile OverviewGreptile SummaryThis PR updates the deployment workflow to recognize any tag matching the Key changes:
Critical issue identified:
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Git as Git Tag Push
participant Workflow as Deployment Workflow
participant Check as determine-builds Job
participant Build as build-backend-craft Jobs
participant Merge as merge-backend-craft Job
participant Docker as Docker Hub
Git->>Workflow: Push craft-* tag (e.g., craft-v1.0.0)
Workflow->>Check: Extract tag name
Check->>Check: Match pattern craft-*
Check->>Check: Set IS_CRAFT_LATEST=true
Check->>Check: Set BUILD_BACKEND_CRAFT=true
Check->>Build: Trigger build (AMD64 & ARM64)
Build->>Build: Build with ENABLE_CRAFT=true
Build->>Merge: Pass digests
Note over Merge: Issue: Always tags as craft-latest<br/>regardless of actual tag name
Merge->>Docker: Push manifest with tag "craft-latest"
Docker-->>Merge: Image stored as craft-latest
|
Additional Comments (2)
Prompt To Fix With AIThis is a comment left during a code review.
Path: .github/workflows/deployment.yml
Line: 1216:1216
Comment:
Docker image will always be tagged as `craft-latest` even when pushed from versioned tags like `craft-v1.0.0`. This defeats the purpose of supporting versioned craft tags. Consider using `${{ github.ref_name }}` or `${{ needs.determine-builds.outputs.sanitized-tag }}` to tag images with the actual tag name.
How can I resolve this? If you propose a fix, please make it concise.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: .github/workflows/deployment.yml
Line: 59:59
Comment:
Variable name `IS_CRAFT_LATEST` is now misleading since it matches any `craft-*` tag, not just `craft-latest`. Consider renaming to `IS_CRAFT` or `IS_CRAFT_TAG` for clarity.
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
Description
How Has This Been Tested?
Additional Options
Summary by cubic
Broadened tag matching in the deployment workflow to treat any "craft-*" tag as a craft release, not just "craft-latest". This ensures versioned craft tags are recognized and follow the correct build/deploy path.
Written for commit 2802049. Summary will update on new commits.