Skip to content

Conversation

@RoxyFarhad
Copy link
Collaborator

@RoxyFarhad RoxyFarhad commented Oct 22, 2025

🔧 Add Automated Tutorial Agent Build Pipeline

Summary

Introduces a CI/CD pipeline that automatically builds and deploys tutorial agent Docker images with intelligent change detection and maintainer-only manual overrides. These images are used by the scale-agentex repo as part of integration testing.

Key Features

🎯 Smart Change Detection

  • Git diff automatically detects which tutorial agents have changes
  • Only builds changed agents (vs all 17+ agents every time)
  • Matrix parallelization for faster builds

🔐 Access Control

  • Manual rebuild_all flag restricted to admin/maintainer permissions
  • Permission validation via GitHub API for workflow dispatch

🚀 Multi-Trigger Support

  • Pull Requests: Validate builds (no registry push)
  • Main Branch: Build + push to GHCR (latest tag)
  • Manual Override: rebuild_all=true rebuilds all agents

Workflow Behavior

Trigger Builds Registry Push Use Case
Pull Request Changed only Pre-merge validation
Push to Main Changed only Production deployment
Manual rebuild_all=true All agents Full rebuild

Usage

Manual rebuild all agents (maintainers only)
gh workflow run build-and-push-tutorial-agent.yml --field rebuild_all=true

Benefits

  • Faster CI: Only builds what changed
  • Secure: Prevents unauthorized expensive builds
  • Reliable: PR validation catches issues before merge
  • Visible: Clear job names per agent

Images published to ghcr.io/{owner}/{repo}/tutorial-agents/{agent-name}:latest

@RoxyFarhad RoxyFarhad force-pushed the add-workflow-to-build-tutorial-agents branch from 686e19a to a3bb2ff Compare October 22, 2025 21:15
@RoxyFarhad RoxyFarhad force-pushed the add-workflow-to-build-tutorial-agents branch from a3bb2ff to 5772cc5 Compare October 22, 2025 21:31
@RoxyFarhad RoxyFarhad force-pushed the add-workflow-to-build-tutorial-agents branch from 5772cc5 to 4cdea1a Compare October 22, 2025 21:42
@RoxyFarhad RoxyFarhad force-pushed the add-workflow-to-build-tutorial-agents branch 2 times, most recently from 5c57f80 to 50bdc71 Compare November 3, 2025 23:41
@RoxyFarhad RoxyFarhad force-pushed the add-workflow-to-build-tutorial-agents branch from 50bdc71 to b0eb068 Compare November 3, 2025 23:43
@RoxyFarhad RoxyFarhad force-pushed the add-workflow-to-build-tutorial-agents branch from 66d14e6 to 152c53f Compare November 4, 2025 15:16
@RoxyFarhad RoxyFarhad changed the title pipeline to build tutorial agents Workflow to build tutorial agents on commits Nov 4, 2025
@RoxyFarhad RoxyFarhad requested review from agentex-scale, jasonyang101 and smoreinis and removed request for agentex-scale November 4, 2025 15:26
@RoxyFarhad RoxyFarhad merged commit 8f28c26 into main Nov 4, 2025
12 checks passed
@RoxyFarhad RoxyFarhad deleted the add-workflow-to-build-tutorial-agents branch November 4, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants