Skip to content

rajbos/github-config-as-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Configuration as code for the GitHub Platform

Blogpost with explanation can be found on https://devopsjournal.io.
Overview repository for this setup. Since most of these items need to be running in a separate org, I created them on robs-tests.

1) Automate user onboarding and repository creation

For our training org we wanted to make the following steps easier:

  1. Add new users and teams to the users.yml file
  2. Create a PR
  3. The workflow pull_request.yml workflow checks if:
    • The user file is valid yaml
    • The users is a valid GitHub handle
    • The user is already a member of the organization
  4. After merging, the user-management.yml workflow runs and:
    • Create the team if needed
    • Add the user to the org
    • Create repository attendee-<userhandle>
    • Add the user to the repo
    • Add the user to the team
    • Add the team to the repo

Link to repo: robs-tests/user-test-repo

About

Configuration as code for the GitHub Platform

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published