Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (26 loc) · 882 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 882 Bytes

Github-Terraform

This is a repository for people to administer the asgharlabs github organization.

In order to use this you need to export these two variables:

export TF_VAR_github_token=<token>
export TF_VAR_github_organization=asgharlabs

Then run the following in your repository:

git pull https://github.com/asgharlabs/github-terraform.git
terraform init # assuming you have terraform installed
git checkout master
git pull
terraform plan
terraform apply

If you need to import a repository that already exists, here is an example:

terraform import github_repository.asgharlabs-centos7_repository asgharlabs-centos7

The above will update the tfstate file with the needed information.

Github Actions

I started to follow this link so everything can be ran via Github Actions.