Compare commits

..

1 Commits

Author SHA1 Message Date
147ed53b5f feat: add build job
Some checks failed
Build / build (pull_request) Failing after 1m17s
- add build job that runs `make plan`
- enable provider caching
2025-10-17 12:08:02 +11:00
7 changed files with 7 additions and 18 deletions

View File

@ -12,12 +12,7 @@ define vault_env
export PUPPET_CERT_PRIV=$$(vault kv get -field=private_key kv/service/puppet/certificates/terraform) && \ export PUPPET_CERT_PRIV=$$(vault kv get -field=private_key kv/service/puppet/certificates/terraform) && \
export TG_QUEUE_EXCLUDE_DIR="templates/base" && \ export TG_QUEUE_EXCLUDE_DIR="templates/base" && \
export TG_PROVIDER_CACHE=1 && \ export TG_PROVIDER_CACHE=1 && \
eval "$$(vault read -format=json kv/data/service/terraform/incus \ export $$(vault read -format=json kv/data/service/terraform/incus | jq -r '.data.data | to_entries[] | "\(.key)=\(.value)"')
| jq -r '.data.data | to_entries[] | "export \(.key)=\(.value|@sh)"')" && \
export INCUS_CONFIG_DIR=$$(mktemp -d) && \
mkdir -p $$INCUS_CONFIG_DIR && \
printf '%s\n' "$$INCUS_CLIENT_CRT" > $$INCUS_CONFIG_DIR/client.crt && \
printf '%s\n' "$$INCUS_CLIENT_KEY" > $$INCUS_CONFIG_DIR/client.key
endef endef
clean: clean:

View File

@ -34,9 +34,8 @@ generate "provider" {
if_exists = "overwrite_terragrunt" if_exists = "overwrite_terragrunt"
contents = <<-EOF contents = <<-EOF
provider "incus" { provider "incus" {
generate_client_certificates = false generate_client_certificates = true
accept_remote_certificate = true accept_remote_certificate = true
config_dir = "${get_env("INCUS_CONFIG_DIR")}"
remote { remote {
name = "${basename(get_terragrunt_dir())}" name = "${basename(get_terragrunt_dir())}"

View File

@ -26,9 +26,8 @@ generate "provider" {
if_exists = "overwrite_terragrunt" if_exists = "overwrite_terragrunt"
contents = <<-EOF contents = <<-EOF
provider "incus" { provider "incus" {
generate_client_certificates = false generate_client_certificates = true
accept_remote_certificate = true accept_remote_certificate = true
config_dir = "${get_env("INCUS_CONFIG_DIR")}"
remote { remote {
name = "${basename(get_terragrunt_dir())}" name = "${basename(get_terragrunt_dir())}"

View File

@ -26,9 +26,8 @@ generate "provider" {
if_exists = "overwrite_terragrunt" if_exists = "overwrite_terragrunt"
contents = <<-EOF contents = <<-EOF
provider "incus" { provider "incus" {
generate_client_certificates = false generate_client_certificates = true
accept_remote_certificate = true accept_remote_certificate = true
config_dir = "${get_env("INCUS_CONFIG_DIR")}"
remote { remote {
name = "${basename(get_terragrunt_dir())}" name = "${basename(get_terragrunt_dir())}"

View File

@ -26,9 +26,8 @@ generate "provider" {
if_exists = "overwrite_terragrunt" if_exists = "overwrite_terragrunt"
contents = <<-EOF contents = <<-EOF
provider "incus" { provider "incus" {
generate_client_certificates = false generate_client_certificates = true
accept_remote_certificate = true accept_remote_certificate = true
config_dir = "${get_env("INCUS_CONFIG_DIR")}"
remote { remote {
name = "${basename(get_terragrunt_dir())}" name = "${basename(get_terragrunt_dir())}"

View File

@ -26,9 +26,8 @@ generate "provider" {
if_exists = "overwrite_terragrunt" if_exists = "overwrite_terragrunt"
contents = <<-EOF contents = <<-EOF
provider "incus" { provider "incus" {
generate_client_certificates = false generate_client_certificates = true
accept_remote_certificate = true accept_remote_certificate = true
config_dir = "${get_env("INCUS_CONFIG_DIR")}"
remote { remote {
name = "${basename(get_terragrunt_dir())}" name = "${basename(get_terragrunt_dir())}"

View File

@ -26,9 +26,8 @@ generate "provider" {
if_exists = "overwrite_terragrunt" if_exists = "overwrite_terragrunt"
contents = <<-EOF contents = <<-EOF
provider "incus" { provider "incus" {
generate_client_certificates = false generate_client_certificates = true
accept_remote_certificate = true accept_remote_certificate = true
config_dir = "${get_env("INCUS_CONFIG_DIR")}"
remote { remote {
name = "${basename(get_terragrunt_dir())}" name = "${basename(get_terragrunt_dir())}"