[CLOUDFLARE PAGES] kittywit.ch

This commit is contained in:
Kat Inskip 2023-04-29 14:06:20 -07:00
parent c980cd0207
commit 08b0afdf74
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
6 changed files with 25 additions and 78 deletions

View file

@ -61,15 +61,6 @@ resource "cloudflare_record" "terraform_managed_resource_1125359cc05a16a0950fd25
zone_id = "7e44e5503a0bba73d2025d0a9679205e"
}
resource "cloudflare_record" "terraform_managed_resource_92ffaf7e0cfd9bb265a01448160abbf5" {
name = "kittywit.ch"
proxied = false
ttl = 3600
type = "CNAME"
value = "yukari.gensokyo.zone"
zone_id = "7e44e5503a0bba73d2025d0a9679205e"
}
resource "cloudflare_record" "terraform_managed_resource_95d39eb707041e694c6b7f03cbae6b11" {
name = "vault"
proxied = false

View file

@ -0,0 +1,24 @@
resource "cloudflare_pages_project" "kittywitch" {
account_id = "0467b993b65d8fd4a53fe24ed2fbb2a1"
name = "kittywitch"
production_branch = "main"
source {
type = "github"
config {
owner = "kittywitch"
repo_name = "kittywit.ch"
production_branch = "main"
deployments_enabled = true
pr_comments_enabled = false
production_deployment_enabled = true
}
}
}
resource "cloudflare_pages_domain" "kittywitch_root" {
account_id = "0467b993b65d8fd4a53fe24ed2fbb2a1"
project_name = "kittywitch"
domain = "kittywit.ch"
}

46
main.go
View file

@ -1,46 +0,0 @@
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"gopkg.in/yaml.v3"
"kittywitch/iac"
"os"
)
func main() {
store := iac.KatConfig{}
configFile, err := os.ReadFile("config.yaml")
if err != nil {
return
}
if err := yaml.Unmarshal(configFile, &store); err != nil {
return
}
pulumi.Run(func(ctx *pulumi.Context) error {
for _, zone := range store.Zones {
err = zone.Handle(ctx)
if err != nil {
return err
}
if err != nil {
return err
}
}
for name, machine := range store.Machines {
err = machine.Handle(ctx, name)
if err != nil {
return err
}
}
err = iac.InskipPage(ctx)
if err != nil {
return err
}
return err
})
}

View file

@ -12,10 +12,7 @@ with pkgs; let
[
fd # fd, better fine!
ripgrep # rg, better grep!
go # Required for pulumi
gopls
sops
pulumi-bin # Infrastructure as code
deadnix # dead-code scanner
alejandra # code formatter
statix # anti-pattern finder
@ -26,6 +23,7 @@ with pkgs; let
''))
repo.darwinConfigurations);
shellHook = ''
sops
echo -e "\e[39m\e[1m$USER@$REPO_HOSTNAME - \e[35m''$(realpath --relative-to=../ ./nixos/)\e[0m"
echo -e "\e[35mRunning alejandra\e[0m"
alejandra -cq $(fd -e nix)

View file

@ -25,16 +25,6 @@ _: let
environment.systemPackages = with pkgs; [
fd # fd, better fine!
ripgrep # rg, better grep!
go # Required for pulumi
gotools
go-outline
gocode
gopkgs
gocode-gomod
godef
golint
gopls
pulumi-bin # Infrastructure as code
deadnix # dead-code scanner
alejandra # code formatter
statix # anti-pattern finder

View file

@ -16,16 +16,6 @@ _: let
environment.systemPackages = with pkgs; [
fd # fd, better fine!
ripgrep # rg, better grep!
go # Required for pulumi
gotools
go-outline
gocode
gopkgs
gocode-gomod
godef
golint
gopls
pulumi-bin # Infrastructure as code
deadnix # dead-code scanner
alejandra # code formatter
statix # anti-pattern finder