Commit 0cd5b545bbd3

Vincent Demeester <vincent@sbr.pm>
2026-07-28 16:46:46
feat(kyushu): add repo clone script for work repositories
Script to clone all work repos (osp, tektoncd, home, etc.) matching aomi's ~/src/ layout. Run after SSH keys are set up.
1 parent c926062
Changed files (1)
imperative
imperative/kyushu/clone-repos.sh
@@ -0,0 +1,52 @@
+#!/usr/bin/env bash
+# Clone work repositories on kyushu
+# Run after SSH keys (TPM + FIDO2) are set up and gh auth is done
+set -euo pipefail
+
+echo "Cloning work repositories into ~/src/..."
+
+# Home infra (carthage)
+mkdir -p ~/src
+git clone vincent@carthage.vpn:/home/vincent/git/public/home.git ~/src/home || echo "home: already exists"
+git clone vincent@carthage.vpn:git/public/www.git ~/src/www || echo "www: already exists"
+
+# Praetorian
+mkdir -p ~/src/vdemeester
+git clone git@github.com:vdemeester/praetorian.git ~/src/vdemeester/praetorian || echo "praetorian: already exists"
+
+# OpenShift Pipelines (osp)
+mkdir -p ~/src/osp
+for repo in \
+  ai-approver ambient-workflows architecture catalog-cd cfp-radar \
+  console-plugin cookbook coverage-dashboard docs ecosystem-images \
+  hack knowledge-base manual-approval-gate multi-cluster \
+  multicluster-proxy-aae must-gather osp-component-dashboard \
+  plumbing skills tekton-assist tekton-kueue tkn-autogenerate; do
+  git clone "git@github.com:vdemeester/openshift-pipelines-${repo}.git" ~/src/osp/"$repo" || echo "osp/$repo: already exists"
+done
+git clone https://github.com/vdemeester/openshift-pipelines-opc.git ~/src/osp/opc || echo "osp/opc: already exists"
+
+# Tekton upstream
+mkdir -p ~/src/tektoncd
+for repo in \
+  actions catalog catlin chains cli community dashboard \
+  mcp-server operator pipeline plumbing pruner results triggers website; do
+  git clone "git@github.com:vdemeester/tektoncd-${repo}.git" ~/src/tektoncd/"$repo" || echo "tektoncd/$repo: already exists"
+done
+git clone git@github.com:vdemeester/pipelines-as-code.git ~/src/tektoncd/pipelines-as-code || echo "tektoncd/pipelines-as-code: already exists"
+git clone https://github.com/tektoncd/infra.git ~/src/tektoncd/infra || echo "tektoncd/infra: already exists"
+git clone https://github.com/vdemeester/tektoncd-dotgithub.git ~/src/tektoncd/.github || echo "tektoncd/.github: already exists"
+git clone https://github.com/vdemeester/tekton-docusaurus-poc.git ~/src/tektoncd/docusaurus-poc || echo "tektoncd/docusaurus-poc: already exists"
+git clone https://github.com/vdemeester/upstream-highlights.git ~/src/tektoncd/upstream-highlights || echo "tektoncd/upstream-highlights: already exists"
+
+# Tekton catalog repos
+mkdir -p ~/src/tektoncd-catalog
+for repo in git-clone golang kaniko; do
+  git clone "git@github.com:vdemeester/tektoncd-catalog-${repo}.git" ~/src/tektoncd-catalog/"$repo" || echo "tektoncd-catalog/$repo: already exists"
+done
+
+# Other
+mkdir -p ~/src/carlos
+git clone https://github.com/carlos-salinas/pipelines-lab ~/src/carlos/pipelines-lab || echo "carlos/pipelines-lab: already exists"
+
+echo "Done! $(find ~/src -name '.git' -type d | wc -l) repos cloned."