ci: add dev tag trigger and environment-based image tagging #114
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#114
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ci/dev-tag-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
devto the CI tag trigger list so pushing adevtag builds a Docker imageenvironmentoutput (devorproduction) for environment-based image tagging:version+:production+:latest:dev+:latest:latestfor backward compatibility with current akamai docker-composeTest plan
devtag to trigger a CI buildmanticorum67/major-domo-database:devimagessh sba-db)🤖 Generated with Claude Code
AI Code Review
Files Reviewed
.gitea/workflows/docker-build.yml(modified)Findings
Correctness
No issues found.
The
environmentoutput logic is correct:VERSION=dev→environment=dev, any CalVer tag →environment=production. The tag list correctly produces:version+:production+:latestfor CalVer builds, and:dev+:dev+:latestfor dev builds.One observation: when the
devtag triggers a build, bothsteps.version.outputs.versionandsteps.version.outputs.environmentresolve to"dev", so the tag list containsmanticorum67/major-domo-database:devtwice. Docker Hub andbuild-push-actionhandle duplicate tags silently (no-op), so this is functionally harmless.Security
No issues found. Secrets are correctly used for Docker Hub credentials and Discord webhook. No hardcoded credentials introduced.
Style & Conventions
No issues found. Follows existing Gitea Actions patterns.
Suggestions
:devtag (cosmetic): Sinceversion=devandenvironment=devare identical for dev builds, the tags list has a redundant entry. If you want to keep the tags list clean, you could conditionally include theenvironmenttag only for non-dev builds — but given Docker ignores duplicates, this is purely cosmetic.:latestupdated by dev builds: After this change, force-pushing thedevtag will overwrite:lateston Docker Hub. If the production server (ssh akamai) ever performsdocker-compose pullwhile:latestpoints to a dev image, it would pull a dev build. The PR notes this is intentional for backward compatibility — just worth keeping in mind when the productiondocker-compose.prod.ymlis eventually updated to use:productionexplicitly.Verdict: COMMENT
Clean CI change. Logic is correct, conventions followed, no security issues. Approved — posting as COMMENT since Gitea blocks self-approval.
Automated review by Claude PR Reviewer