Skip to content

Automate library sync when new version is pushed#300

Merged
prestoncabe merged 3 commits intomainfrom
automate-library-api-release-steps
Mar 4, 2026
Merged

Automate library sync when new version is pushed#300
prestoncabe merged 3 commits intomainfrom
automate-library-api-release-steps

Conversation

@prestoncabe
Copy link
Collaborator

git push origin library-api-vX.X.X

deploy — builds library-api, pushes Docker image, deploys to Cloud Run
— waits until new revision is healthy

sync-metadata — calls load-library-metadata.yml (workflow_call)
├─ sync — fetches OpenAPI spec, uploads check metadata to Firebase Storage/Firestore
└─ restart — redeploys builder-api:latest to Cloud Run (no rebuild, ~30-60s)
— new revision starts, @PostConstruct reads updated metadata

Manual trigger (workflow_dispatch) also runs both sync + restart automatically.

git push origin library-api-vX.X.X
         ↓
deploy          — builds library-api, pushes Docker image, deploys to Cloud Run
                — waits until new revision is healthy
         ↓
sync-metadata   — calls load-library-metadata.yml (workflow_call)
  ├─ sync       — fetches OpenAPI spec, uploads check metadata to Firebase Storage/Firestore
  └─ restart    — redeploys builder-api:latest to Cloud Run (no rebuild, ~30-60s)
                — new revision starts, @PostConstruct reads updated metadata

Manual trigger (workflow_dispatch) also runs both sync + restart automatically.
@prestoncabe prestoncabe force-pushed the automate-library-api-release-steps branch from 8b7afc6 to fed2a5b Compare March 3, 2026 03:09
- redeploys the same image instead of relying on `:latest`
- adds a timestamp so we know that the sync happened and when
@prestoncabe prestoncabe merged commit 4883201 into main Mar 4, 2026
1 check passed
@prestoncabe prestoncabe deleted the automate-library-api-release-steps branch March 4, 2026 21:14
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.

2 participants