2020-02-13 22:45:21 +00:00
|
|
|
let kms =
|
2020-07-16 20:17:27 +00:00
|
|
|
https://xena.greedo.xeserv.us/pkg/dhall/kubermemes/k8s/package.dhall
|
2020-02-13 22:45:21 +00:00
|
|
|
|
|
|
|
let kubernetes =
|
2020-07-16 20:17:27 +00:00
|
|
|
https://xena.greedo.xeserv.us/pkg/dhall/dhall-kubernetes/1.15/package.dhall
|
2020-02-13 22:45:21 +00:00
|
|
|
|
|
|
|
let tag = env:GITHUB_SHA as Text ? "latest"
|
|
|
|
|
|
|
|
let image = "xena/christinewebsite:${tag}"
|
|
|
|
|
|
|
|
let vars
|
|
|
|
: List kubernetes.EnvVar.Type
|
2020-07-16 19:32:30 +00:00
|
|
|
= [ kubernetes.EnvVar::{ name = "PORT", value = Some "3030" }
|
|
|
|
, kubernetes.EnvVar::{ name = "RUST_LOG", value = Some "info" }
|
|
|
|
, kubernetes.EnvVar::{
|
|
|
|
, name = "PATREON_CLIENT_ID"
|
|
|
|
, value = Some env:PATREON_CLIENT_ID as Text
|
|
|
|
}
|
|
|
|
, kubernetes.EnvVar::{
|
|
|
|
, name = "PATREON_CLIENT_SECRET"
|
|
|
|
, value = Some env:PATREON_CLIENT_SECRET as Text
|
|
|
|
}
|
|
|
|
, kubernetes.EnvVar::{
|
|
|
|
, name = "PATREON_ACCESS_TOKEN"
|
|
|
|
, value = Some env:PATREON_ACCESS_TOKEN as Text
|
|
|
|
}
|
|
|
|
, kubernetes.EnvVar::{
|
|
|
|
, name = "PATREON_REFRESH_TOKEN"
|
|
|
|
, value = Some env:PATREON_REFRESH_TOKEN as Text
|
|
|
|
}
|
|
|
|
]
|
2020-02-13 22:45:21 +00:00
|
|
|
|
|
|
|
in kms.app.make
|
|
|
|
kms.app.Config::{
|
|
|
|
, name = "christinewebsite"
|
2020-07-16 19:32:30 +00:00
|
|
|
, appPort = 3030
|
2020-02-13 22:45:21 +00:00
|
|
|
, image = image
|
2020-07-16 19:32:30 +00:00
|
|
|
, replicas = 2
|
2020-02-13 22:45:21 +00:00
|
|
|
, domain = "christine.website"
|
|
|
|
, leIssuer = "prod"
|
|
|
|
, envVars = vars
|
|
|
|
}
|