Compare commits
No commits in common. "5d965ade685bcf8d98a0f8d9a297b2aa78f74e16" and "0e3be2cb83a35dbb417a223c3cdfd9f98118896b" have entirely different histories.
5d965ade68
...
0e3be2cb83
@ -36,8 +36,4 @@ else
|
|||||||
orange() {
|
orange() {
|
||||||
echo $@
|
echo $@
|
||||||
}
|
}
|
||||||
|
|
||||||
blue() {
|
|
||||||
echo $@
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
|
@ -63,7 +63,7 @@ case $NAMESPACE in org-*)
|
|||||||
NAMESPACE=${NAMESPACE#"org-"}
|
NAMESPACE=${NAMESPACE#"org-"}
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CAPA_CLUSTER="--provider capa"
|
CAPA_CLUSTER="--provider aws --release ${RELEASE}"
|
||||||
CAPZ_CLUSTER="--provider azure --release ${RELEASE}"
|
CAPZ_CLUSTER="--provider azure --release ${RELEASE}"
|
||||||
CAPG_CLUSTER="--provider gcp --gcp-project giantswarm-352614 --region europe-west3 --gcp-failure-domains europe-west3-a --gcp-machine-deployment-failure-domain europe-west3-a"
|
CAPG_CLUSTER="--provider gcp --gcp-project giantswarm-352614 --region europe-west3 --gcp-failure-domains europe-west3-a --gcp-machine-deployment-failure-domain europe-west3-a"
|
||||||
TEMPLATE_ARGS="--name ${NAME:0:5} --organization ${NAMESPACE}"
|
TEMPLATE_ARGS="--name ${NAME:0:5} --organization ${NAMESPACE}"
|
||||||
|
@ -1,74 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
source .utils
|
|
||||||
|
|
||||||
TEMPLATE="giantswarm/template-app"
|
|
||||||
VISIBILITY="public"
|
|
||||||
|
|
||||||
print_usage() {
|
|
||||||
orange "gs-create-repo - a new Giant Swarm repo"
|
|
||||||
echo " "
|
|
||||||
underline "Usage:"
|
|
||||||
echo "gs-create-repo (flags) [repo-name]"
|
|
||||||
echo " "
|
|
||||||
echo " "
|
|
||||||
underline "Options:"
|
|
||||||
echo "-h, --help show this help text"
|
|
||||||
echo "-t, --template the template repo to base the new repo on (default: ${TEMPLATE})"
|
|
||||||
echo " --visibility the visibility of the repo (default: ${VISIBILITY}"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
POS_ARGS=()
|
|
||||||
while test $# -gt 0; do
|
|
||||||
case "$1" in
|
|
||||||
-t|--template)
|
|
||||||
shift
|
|
||||||
TEMPLATE=$1
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
-p|--private)
|
|
||||||
shift
|
|
||||||
PRIVATE="--private"
|
|
||||||
;;
|
|
||||||
-h|--help)
|
|
||||||
print_usage
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
POS_ARGS+=${1}
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
case $TEMPLATE in
|
|
||||||
*/*)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
TEMPLATE="giantswarm/${TEMPLATE}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
REPOSITORY_NAME=${POS_ARGS[0]}
|
|
||||||
|
|
||||||
echo "✨ Creating new repo $(italic ${VISIBILITY}) $(orange ${REPOSITORY_NAME}) using base template $(blue ${TEMPLATE})"
|
|
||||||
gh repo create --${VISIBILITY} --template ${TEMPLATE} giantswarm/${REPOSITORY_NAME}
|
|
||||||
|
|
||||||
if [ -d helm/APP-NAME ]; then
|
|
||||||
mv helm/APP-NAME helm/${REPOSITORY_NAME}
|
|
||||||
fi
|
|
||||||
|
|
||||||
devctl replace -i '{APP-NAME}' ${REPOSITORY_NAME} --ignore .git ./.** ./**
|
|
||||||
|
|
||||||
git add -A
|
|
||||||
git commit -m "rename APP-NAME placeholder to ${REPOSITORY_NAME}"
|
|
||||||
git push
|
|
||||||
|
|
||||||
devctl repo setup giantswarm/${REPOSITORY_NAME} \
|
|
||||||
--allow-automerge=true --allow-mergecommit=false --allow-rebasemerge=false \
|
|
||||||
--allow-squashmerge=true --allow-updatebranch=true --delete-branch-on-merge=true \
|
|
||||||
--enable-issues=true --enable-projects=false --enable-wiki=false
|
|
||||||
|
|
||||||
echo "🎉 New repo $(orange ${REPOSITORY_NAME}) created! - https://github.com/giantswarm/${REPOSITORY_NAME}"
|
|
@ -30,7 +30,7 @@ BREW_TOOLS=(
|
|||||||
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
|
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
|
||||||
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats
|
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats
|
||||||
tabby vale lastpass-cli jless macchina tz vmware-tanzu/carvel/kapp viddy
|
tabby vale lastpass-cli jless macchina tz vmware-tanzu/carvel/kapp viddy
|
||||||
homeassistant-cli act dnsmasq gh
|
homeassistant-cli act dnsmasq
|
||||||
)
|
)
|
||||||
CARGO_TOOLS=( bottom )
|
CARGO_TOOLS=( bottom )
|
||||||
NODE_TOOLS=( git-split-diffs )
|
NODE_TOOLS=( git-split-diffs )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user