feat(*): initialize new Snix infrastructure

Co-Authored-By: edef <edef@edef.eu>
Co-Authored-by: Ryan Lahfa <raito@lix.systems>
Change-Id: Ica1cda177a236814de900f50a8a61d288f58f519
This commit is contained in:
Florian Klink 2025-01-06 01:06:47 +01:00
parent 067eff3427
commit a52ea3675c
124 changed files with 27723 additions and 1631 deletions

49
ops/buildkite/snix.tf Normal file
View file

@ -0,0 +1,49 @@
# Buildkite configuration for snix.
terraform {
required_providers {
buildkite = {
source = "buildkite/buildkite"
}
}
backend "s3" {
endpoints = {
s3 = "https://s3.dualstack.eu-central-1.amazonaws.com"
}
bucket = "snix-tfstate"
key = "terraform/snix-buildkite"
region = "eu-central-1"
skip_credentials_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
}
}
provider "buildkite" {
organization = "snix"
}
resource "buildkite_cluster" "primary" {
name = "Primary cluster"
description = "Build everything and deploy"
emoji = "🚀"
color = "#bada55"
}
resource "buildkite_pipeline" "snix" {
name = "snix"
description = "Run full CI pipeline of the Snix monorepository."
repository = "https://cl.snix.dev/snix"
steps = file("./steps-snix.yml")
default_branch = "refs/heads/canon"
cluster_id = buildkite_cluster.primary.id
}
resource "buildkite_cluster_queue" "default" {
cluster_id = buildkite_cluster.primary.id
key = "default"
}

View file

@ -1,4 +0,0 @@
---
steps:
- label: ":buildkite: Upload pipeline"
command: "buildkite-agent pipeline upload"

View file

@ -1,4 +0,0 @@
---
steps:
- label: ":buildkite: Upload pipeline"
command: "buildkite-agent pipeline upload"

View file

@ -1,52 +0,0 @@
# Buildkite configuration for TVL.
terraform {
required_providers {
buildkite = {
source = "buildkite/buildkite"
}
}
backend "s3" {
endpoints = {
s3 = "https://objects.dc-sto1.glesys.net"
}
bucket = "tvl-state"
key = "terraform/tvl-buildkite"
region = "glesys"
skip_credentials_validation = true
skip_region_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
skip_s3_checksum = true
}
}
provider "buildkite" {
organization = "tvl"
}
resource "buildkite_pipeline" "depot" {
name = "depot"
description = "Run full CI pipeline of the depot, TVL's monorepo."
repository = "https://cl.tvl.fyi/depot"
steps = file("./steps-depot.yml")
default_branch = "refs/heads/canon"
}
resource "buildkite_pipeline" "tvix" {
name = "tvix"
description = "Tvix, an exported subset of TVL depot"
repository = "https://code.tvl.fyi/depot.git:workspace=views/tvix.git"
steps = file("./steps-tvix.yml")
default_branch = "canon"
}
resource "buildkite_pipeline" "tvl_kit" {
name = "tvl-kit"
description = "TVL Kit, an exported subset of TVL depot"
repository = "https://code.tvl.fyi/depot.git:workspace=views/kit.git"
steps = file("./steps-tvl-kit.yml")
default_branch = "canon"
}