Add GitHub Actions workflow to build and push backend image#15
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af1c32efa6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| images: ${{ env.IMAGE_NAME }} | ||
| tags: | | ||
| type=sha | ||
| type=raw,value=latest |
There was a problem hiding this comment.
Guard latest tag to default-branch builds only
workflow_dispatch runs can be started against non-main branches (GitHub’s manual run UI includes a branch selector), but this workflow always emits type=raw,value=latest; that means a manual run from a feature branch will publish that branch’s image as latest and overwrite the production-facing tag in GHCR. Restrict latest to default-branch builds (for example with metadata-action’s enable={{is_default_branch}} or a github.ref == 'refs/heads/main' guard) so manual test builds cannot retag release images.
Useful? React with 👍 / 👎.
No description provided.