Skip to content

Boilerplate for github repositories via terraform

License

Notifications You must be signed in to change notification settings

aelmekeev/github-repo-boilerplate

Repository files navigation

Github Repository Boilerplate

This repository allows to create a repository with the default configuration.

Triggering from github

Creation

You can easily trigger repository creation from github web UI:

  1. Open terraform.tfvars.
  2. Click on Edit this file.
  3. Change name of the repository (and other parameters if needed).
  4. Commit the change.

Repository will be provisioned by Creation github workflow.

Triggering from local

Prerequisites

  • terraform >= 0.13
  • Github personal access token with the following scopes:
    • public_repo (or repo if you want to create private repository)
    • read:org

Running

Update terraform.tfvars and run:

GITHUB_TOKEN=<your github token here> make create

Alternatively, you can define the name of the repository created as the parameter:

GITHUB_TOKEN=<your github token here> make create name=repository-name-here

About

Boilerplate for github repositories via terraform

Topics

Resources

License

Stars

Watchers

Forks