Skip to content

jaudiger/gitops-deployments

Repository files navigation

GitOps Deployments

Instructions

This repository is the source of truth for all my public deployments. I'm currently using Terraform to manage my infrastructure as code.

The Terraform state is not stored locally, and is retrieved from a Cloudflare R2 object storage. To init Terraform, run this command:

export BACKEND_ACCESS_KEY="..." BACKEND_SECRET_KEY="..."
terraform init -backend-config=access_key=$BACKEND_ACCESS_KEY -backend-config=secret_key=$BACKEND_SECRET_KEY

Then, to apply the changes, run this command:

export CLOUDFLARE_API_KEY="..." CLOUDFLARE_EMAIL="..." TF_VAR_crates_io_api_token="..."
terraform apply

CI / CD

The CI/CD pipeline is configured using GitHub Actions. The workflow is defined in the .github/workflows folder:

  • Static Analysis (Terraform)
  • Tests (Terraform plan)

Additionally, Dependabot is configured to automatically update dependencies (GitHub Actions, Terraform providers).

Repository configuration

The settings of this repository are managed using Terraform. The actual configuration applied is located in the Terraform module modules/github-repository.

About

Source of truth of my deployments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages