diff --git a/setup_project_repo.sh b/setup_project_repo.sh index 5d7897f..b4529c4 100755 --- a/setup_project_repo.sh +++ b/setup_project_repo.sh @@ -1,7 +1,21 @@ #!/bin/bash - -mkdir flux kustomize helm - +# +# Example useage +# +# default example: +# setup_project_repo.sh +# +# instavote apps: +# setup_project_repo.sh redis +# setup_project_repo.sh results +# setup_project_repo.sh vote +# setup_project_repo.sh worker +# + +mkdir -p flux kustomize helm + +# main readme is maintained as append, but only run 1x +if [ ! -f "flux/base/README.md" ]; then cat >> README.md < base/README.md < flux/base/README.md < staging/README.md < flux/staging/README.md < production/README.md < flux/production/README.md < staging/kustomization.yaml < flux/staging/kustomization.yaml < production/kustomization.yaml < flux/production/kustomization.yaml < base/README.md < ${KUSTOMIZE_BASE}/base/README.md < staging/README.md < ${KUSTOMIZE_BASE}/staging/README.md < production/README.md < ${KUSTOMIZE_BASE}/production/README.md < staging/kustomization.yaml < ${KUSTOMIZE_BASE}/staging/kustomization.yaml < production/kustomization.yaml < ${KUSTOMIZE_BASE}/production/kustomization.yaml < charts/README.md < helm/charts/README.md <