Skip to content

Project to automate the onboarding process for Operate First

License

Notifications You must be signed in to change notification settings

tssala23/robozome

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Probot's logo, a cartoon robot

GitHub last commit License Reported bugs Feature requests


How to use

  1. Create a new repository from this template

  2. 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
  3. Follow a guide at Probot on how to create and configure a GitHubApp

  4. 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
  5. Hack on src/app.ts.

Resources

Contributions

See CONTRIBUTING.md on how to contribute.


Credit

See ACKNOWLEDGMENTS.md.

About

Project to automate the onboarding process for Operate First

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.5%
  • Shell 9.3%
  • JavaScript 3.2%