Replace manual container build workflow with Container Build Flow Action#81
Merged
warengonzaga merged 3 commits intodevfrom Dec 10, 2025
Merged
Conversation
Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Integrate Container Build Flow Action for automated builds
Replace manual container build workflow with Container Build Flow Action
Dec 10, 2025
π§ Container Build Complete - PR BuildBuild Status: β
Success π¦ Pull ImageDocker Hub: docker pull wgtechlabs/unthread-telegram-bot:pr-cfb1ef2GHCR: docker pull ghcr.io/wgtechlabs/unthread-telegram-bot:pr-cfb1ef2π Build Details
π·οΈ Image Tagsβ’ π Testing Your Changes
π Quick Start# Pull and run the container
Docker Hub: docker pull wgtechlabs/unthread-telegram-bot:pr-cfb1ef2
docker run <your-options> <image>π€ Powered by Container Build Flow Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the 80-line manual Docker build workflow with the Container Build Flow Action to add intelligent flow detection and automatic PR comments while reducing complexity by 36%.
Changes
pr-{sha}for PRs to devdev-{sha}for PRs from devβmainpatch-{sha}for direct PRs to mainwip-{sha}for other branchespull_requestevents andmainbranch to enable PR builds and post-merge buildspull-requests: writefor PR comment capabilityPreserved Features
All existing functionality maintained:
Configuration
Release workflow (
release.yml) and validation workflow (validate.yml) remain unchanged.Original prompt
Integrate Container Build Flow Action for Automated Container Builds
π― Task: Integrate Container Build Flow Action
π Overview
Replace the current manual container build workflow with the automated Container Build Flow Action to simplify development builds, add intelligent flow detection, and enable automatic PR comments.
π― Objectives
.github/workflows/build.ymlwith the Container Build Flow Actionπ Files to Modify
Update:
.github/workflows/build.ymlπ§ Implementation Requirements
Current Workflow Configuration
devbranch onlywgtechlabs/unthread-telegram-bot) and GHCR (ghcr.io/wgtechlabs/unthread-telegram-bot)linux/amd64onlydevanddev-{short_sha}DOCKER_HUB_USERNAME,DOCKER_HUB_ACCESS_TOKEN,GITHUB_TOKENNew Workflow Specifications
Replace the entire content of
.github/workflows/build.ymlwith:β¨ Key Features to Gain
1. Intelligent Flow Detection
The action automatically detects and applies appropriate tags:
devβpr-{sha}tagsdevtomainβdev-{sha}tagsmain(not fromdev) βpatch-{sha}tagswip-{sha}tags2. Automatic PR Comments
When triggered by pull requests, the action automatically posts a comment with:
docker pullcommands3. Dual Registry Support
Maintains current behavior:
4. Security Features
Preserves all security features:
π Testing Strategy
Test Scenarios
devbranch β Should build withdev-{sha}tagsdevbranch β Should build withpr-{sha}tags + post PR commentdevtomainβ Should build withdev-{sha}tags + post PR commentExpected Output
After successful build, verify:
wgtechlabs/unthread-telegram-bot(Docker Hub)ghcr.io/wgtechlabs/unthread-telegram-bot(GHCR)π Success Criteria
devπ Reference Implementation
See the working example in the related project:
.github/workflows/build.ymlπ Action Documentation
Created from VS Code via the GitHub Pull Request extension.
π¬ We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.