add drone config and dockerhub skeleton

This commit is contained in:
viktorbarzin 2021-02-10 21:17:31 +00:00
parent a0c40cc687
commit 3c41c2e641
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 415 additions and 4 deletions

View file

@ -14,6 +14,10 @@ variable "bind_db_viktorbarzin_me" {}
variable "bind_db_viktorbarzin_lan" {}
variable "bind_named_conf_options" {}
variable "alertmanager_account_password" {}
variable "drone_github_client_id" {}
variable "drone_github_client_secret" {}
variable "drone_rpc_secret" {}
# variable "dockerhub_password" {}
resource "null_resource" "core_services" {
# List all the core modules that must be provisioned first
@ -25,6 +29,7 @@ module "blog" {
tls_secret_name = var.tls_secret_name
tls_crt = var.tls_crt
tls_key = var.tls_key
# dockerhub_password = var.dockerhub_password
depends_on = [null_resource.core_services]
}
@ -40,6 +45,22 @@ module "dnscrypt" {
source = "./dnscrypt"
}
# CI/CD
module "drone" {
source = "./drone"
tls_secret_name = var.tls_secret_name
tls_crt = var.tls_crt
tls_key = var.tls_key
github_client_id = var.drone_github_client_id
github_client_secret = var.drone_github_client_secret
rpc_secret = var.drone_rpc_secret
server_host = "drone.viktorbarzin.me"
server_proto = "https"
depends_on = [null_resource.core_services]
}
module "f1-stream" {
source = "./f1-stream"
tls_secret_name = var.tls_secret_name