Skip to content

feat(ci): auto-trigger Glama build on every GitHub release#411

Closed
ajitpratap0 wants to merge 0 commit intomainfrom
feat/glama-release-autobuild
Closed

feat(ci): auto-trigger Glama build on every GitHub release#411
ajitpratap0 wants to merge 0 commit intomainfrom
feat/glama-release-autobuild

Conversation

@ajitpratap0
Copy link
Owner

Summary

  • Adds .github/workflows/glama-sync.yml that fires automatically on every published GitHub release
  • Keeps glama.json version in sync with the release tag
  • Triggers a fresh Glama Docker build pinned to the exact release commit SHA so the registry always runs the binary that matches the published release

How it works

Two jobs run in parallel on release: published:

bump-glama-version (continue-on-error: true)

  • Strips v prefix from the release tag
  • Updates glama.json .version field via jq
  • Commits [skip ci] back to the release branch
  • Best-effort: silently passes if branch protection rejects the push

trigger-glama-build

  • POSTs to Glama's admin Dockerfile endpoint with:
    • intent=build
    • pinnedCommitSha=${{ github.sha }} — pins build to exact release commit
    • Full build config: Go 1.26.1 download + compile steps
    • CMD: mcp-proxy -- /app/gosqlx-mcp --stdio
  • Gracefully skips with setup instructions when GLAMA_SESSION_COOKIE is not configured
  • Fails with a clear "cookie expired" message when the secret needs refreshing

Required one-time setup

Glama's admin API is session-authenticated (no public API). Store the browser session cookie as a repository secret:

  1. Log in at https://glama.ai
  2. Open DevTools → Network tab
  3. Navigate to https://glama.ai/mcp/servers/ajitpratap0/GoSQLX/admin/dockerfile
  4. Click any request to glama.ai → Headers → copy the Cookie header value
  5. Repo Settings → Secrets and variables → Actions → New secret
    • Name: GLAMA_SESSION_COOKIE

The cookie expires periodically. When CI starts failing with "auth failed", repeat steps 1–5 to refresh it.

Test plan

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gosqlx-website Ready Ready Preview, Comment Mar 17, 2026 4:30pm

@github-actions github-actions bot added the ci-cd label Mar 17, 2026
@ajitpratap0
Copy link
Owner Author

All changes from this PR are already in main via #410. Closing as superseded.

@ajitpratap0 ajitpratap0 force-pushed the feat/glama-release-autobuild branch from 506d952 to e4ae22c Compare March 17, 2026 17:01
@ajitpratap0 ajitpratap0 deleted the feat/glama-release-autobuild branch March 17, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant