-
Create a new repository from this template
-
Template all references
cat <<EOM > /tmp/data.yaml name: application-name description: Some text prod-namespace: namespaceA stage-namespace: namespaceB image: quay.io/org/repo team: team-name org-repo: org/repo EOM mustache /tmp/data.yaml manifests/base/controller/kustomization.yaml > manifests/base/controller/kustomization.yaml mustache /tmp/data.yaml manifests/base/tasks/kustomization.yaml > manifests/base/tasks/kustomization.yaml mustache /tmp/data.yaml manifests/base/kustomization.yaml > manifests/base/kustomization.yaml mustache /tmp/data.yaml manifests/overlays/stage/kustomization.yaml > manifests/overlays/stage/kustomization.yaml mustache /tmp/data.yaml manifests/overlays/prod/kustomization.yaml > manifests/overlays/prod/kustomization.yaml mustache /tmp/data.yaml src/app.ts > src/app.ts mustache /tmp/data.yaml package.json > package.json mustache /tmp/data.yaml package-lock.json > package-lock.json mv README.md README.old.md mustache /tmp/data.yaml README.template.md > README.md
-
Follow a guide at Probot on how to create and configure a GitHubApp
-
Create credentials secrets for deployment based on your GitHub app data
# Copy secret from base cp manifests/base/controller/secret.yaml manifests/overlays/stage/secret.enc.yaml cp manifests/base/controller/secret.yaml manifests/overlays/prod/secret.enc.yaml # edit manifests/overlays/*/secret.enc.yaml filling in all data # Encrypt them via sops sops -e -i --pgp="0508677DD04952D06A943D5B4DC4116D360E3276" manifests/overlays/stage/secret.enc.yaml sops -e -i --pgp="0508677DD04952D06A943D5B4DC4116D360E3276" manifests/overlays/prod/secret.enc.yaml
-
Hack on
src/app.ts
.
See CONTRIBUTING.md
on how to contribute.
See ACKNOWLEDGMENTS.md
.