feat(workflows): add ci-test, ci-build, and deploy-staging reusable workflows#1
Open
feat(workflows): add ci-test, ci-build, and deploy-staging reusable workflows#1
Conversation
…orkflows Adds the three missing reusable workflow templates to complete the standard 5-stage CI/CD pipeline for all Aperim product repos: - ci-test.yml: pnpm test runner (Vitest/Jest), configurable test command, optional coverage run, per-repo timeout override - ci-build.yml: production build with optional pre/post hooks and artifact upload; handles token generation (build-pre-command) and bundle validation (build-post-command) without duplicating setup - deploy-staging.yml: build Docker image → push GHCR → kubectl rollout on DOKS staging namespace; tag defaults to short SHA, deployment/container names default to image-name to minimise per-repo config Repos call these via uses: aperim/.github/.github/workflows/<name>.yml@main alongside the existing ci-quality.yml (lint+typecheck) and security-scan.yml. Refs: APE-1615 CI/CD standardisation Co-Authored-By: Paperclip <noreply@paperclip.ing>
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.
Summary
Adds three missing reusable workflow templates to complete the standard 5-stage CI/CD pipeline across all Aperim product repos (APE-1615).
Before: only (lint + typecheck) and
After: full pipeline coverage via shared, call-site-configurable workflows
New workflows
Valid resource types include:
Examples:
Rollback to the previous deployment
kubectl rollout undo deployment/abc
Check the rollout status of a daemonset
kubectl rollout status daemonset/foo
Restart a deployment
kubectl rollout restart deployment/abc
Restart deployments with the 'app=nginx' label
kubectl rollout restart deployment --selector=app=nginx
Available Commands:
history View rollout history
pause Mark the provided resource as paused
restart Restart a resource
resume Resume a paused resource
status Show the status of the rollout
undo Undo a previous rollout
Usage:
kubectl rollout SUBCOMMAND [options]
Use "kubectl rollout --help" for more information about a given command.
Use "kubectl options" for a list of global command-line options (applies to all commands). on DOKS staging namespace |
Call pattern (per-repo entrypoint)
Design notes
Test plan
Refs: APE-1615
🤖 Generated with Claude Code