1
0
Fork 0

website deploy is a thing

This commit is contained in:
Lance Vick 2023-05-04 20:31:53 -07:00
parent abb9acb85a
commit dc8c74238e
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
4 changed files with 5 additions and 4 deletions

View File

@ -47,7 +47,8 @@ $(OUT_DIR)/website/.well-known/openpgpkey:
<(cat $(patsubst %,$(KEY_DIR)/%.asc,$(KEYS))) \ <(cat $(patsubst %,$(KEY_DIR)/%.asc,$(KEYS))) \
") ")
$(OUT_DIR)/website/index.html: $(OUT_DIR)/website/index.html: \
$(OUT_DIR)/website/.well-known/openpgpkey
$(call toolchain," \ $(call toolchain," \
cd $(SRC_DIR)/website \ cd $(SRC_DIR)/website \
&& jekyll build \ && jekyll build \

View File

@ -3,7 +3,7 @@ variable "namespace" {}
variable "region" {} variable "region" {}
variable "out_dir" { variable "out_dir" {
type = string type = string
default = "/home/build/out" default = "../../out"
} }
resource "random_id" "suffix" { resource "random_id" "suffix" {

View File

@ -4,7 +4,7 @@ resource "digitalocean_spaces_bucket" "website" {
} }
resource "digitalocean_spaces_bucket_object" "website" { resource "digitalocean_spaces_bucket_object" "website" {
for_each = fileset("${var.out_dir}/website", "*") for_each = fileset("${var.out_dir}/website", "**")
region = var.region region = var.region
bucket = digitalocean_spaces_bucket.website.name bucket = digitalocean_spaces_bucket.website.name
source = "${var.out_dir}/website/${each.value}" source = "${var.out_dir}/website/${each.value}"

@ -1 +1 @@
Subproject commit a3c94eef9f04724f604d89efde00dee14dcf07f0 Subproject commit 601425d588eabd3bdf3eb360d9d2c01164c4a199