website deploy is a thing
This commit is contained in:
parent
abb9acb85a
commit
dc8c74238e
3
Makefile
3
Makefile
|
@ -47,7 +47,8 @@ $(OUT_DIR)/website/.well-known/openpgpkey:
|
|||
<(cat $(patsubst %,$(KEY_DIR)/%.asc,$(KEYS))) \
|
||||
")
|
||||
|
||||
$(OUT_DIR)/website/index.html:
|
||||
$(OUT_DIR)/website/index.html: \
|
||||
$(OUT_DIR)/website/.well-known/openpgpkey
|
||||
$(call toolchain," \
|
||||
cd $(SRC_DIR)/website \
|
||||
&& jekyll build \
|
||||
|
|
|
@ -3,7 +3,7 @@ variable "namespace" {}
|
|||
variable "region" {}
|
||||
variable "out_dir" {
|
||||
type = string
|
||||
default = "/home/build/out"
|
||||
default = "../../out"
|
||||
}
|
||||
|
||||
resource "random_id" "suffix" {
|
||||
|
|
|
@ -4,7 +4,7 @@ resource "digitalocean_spaces_bucket" "website" {
|
|||
}
|
||||
|
||||
resource "digitalocean_spaces_bucket_object" "website" {
|
||||
for_each = fileset("${var.out_dir}/website", "*")
|
||||
for_each = fileset("${var.out_dir}/website", "**")
|
||||
region = var.region
|
||||
bucket = digitalocean_spaces_bucket.website.name
|
||||
source = "${var.out_dir}/website/${each.value}"
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a3c94eef9f04724f604d89efde00dee14dcf07f0
|
||||
Subproject commit 601425d588eabd3bdf3eb360d9d2c01164c4a199
|
Loading…
Reference in New Issue