sustainable_infrastructure_ci
Continuous integration plugin to enforce sustainability best practices on software infrastructure.
View the project brief
Getting started
Dependencies
- Terraform: https://developer.hashicorp.com/terraform/downloads
- Google Cloud: https://cloud.google.com/sdk/docs/install or https://snapcraft.io/google-cloud-cli
Installation
- Create a free GCP account: https://cloud.google.com/free
- Create a project in your account: https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project
- Clone & cd:
git clone https://github.com/AntoineSebert/sustainable_infrastructure_ci.git
cd sustainable_infrastructure_ci
Running the tests
- Login to Google Cloud:
gcloud auth login
# if you encounter an authentication error at a later stages you can try instead:
# gcloud auth application-default login
- Set your project name in the environment:
export GOOGLE_PROJECT=your_gcp_project_name
- Run the test:
cd core/gcp
go test -v -tags gcp .