Files
portal/components/lab/CicdFlow.tsx
T
Tom Chien (IQ-AS) 5fe2ecd757
CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Successful in 4m7s
upload
2026-11-18 18:41:41 +08:00

64 lines
2.1 KiB
TypeScript

import { siDocker, siGit, siGitea, siHarbor, siHelm, siKubernetes } from "simple-icons";
import { BrandIcon } from "@/components/BrandIcon";
import { Connector, FlowNode } from "@/components/flow";
export function CicdFlow() {
return (
<div className="flex flex-col items-stretch lg:flex-row lg:items-stretch">
<FlowNode
step={1}
accent={`#${siGit.hex}`}
icon={<BrandIcon icon={siGit} className="size-5" />}
title="git push"
subtitle="A branch or tag push starts the pipeline."
detail="dev | v1.2.3"
/>
<Connector color="#34d399" />
<FlowNode
step={2}
accent={`#${siGitea.hex}`}
icon={<BrandIcon icon={siGitea} className="size-5" />}
title="Gitea Actions"
subtitle="act_runner picks up the workflow from the repo."
detail="cicd.yaml"
/>
<Connector color="#34d399" />
<FlowNode
step={3}
accent={`#${siDocker.hex}`}
icon={<BrandIcon icon={siDocker} className="size-5" />}
title="docker build"
subtitle="Runner pod uses the Docker Desktop daemon socket."
detail="multi-stage Dockerfile"
/>
<Connector color="#34d399" />
<FlowNode
step={4}
accent={`#${siHarbor.hex}`}
icon={<BrandIcon icon={siHarbor} className="size-5" />}
title="Harbor"
subtitle="Image is pushed to the private registry."
detail="registry :8080"
/>
<Connector color="#34d399" />
<FlowNode
step={5}
accent="#7c8cff"
icon={<BrandIcon icon={siHelm} color="#7c8cff" className="size-5" />}
title="helm upgrade"
subtitle="Chart is rolled out to the namespace."
detail="--atomic"
/>
<Connector color="#34d399" />
<FlowNode
step={6}
accent={`#${siKubernetes.hex}`}
icon={<BrandIcon icon={siKubernetes} className="size-5" />}
title="Kubernetes"
subtitle="Pods pull from Harbor with a pull secret."
detail="Deployment · Service · Ingress"
/>
</div>
);
}