diff --git a/.woodpecker.yml b/.woodpecker.yml index b9c3b09..8f76dee 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -25,7 +25,9 @@ pipeline: environment: - HTTP_PROXY=caladan:8888 - HTTPS_PROXY=caladan:8888 - secrets: [namecheap_api_key] + secrets: + - linode_token + - namecheap_api_key apply: image: registry.monotremata.xyz/terraform diff --git a/linode.tf b/linode.tf new file mode 100644 index 0000000..e801354 --- /dev/null +++ b/linode.tf @@ -0,0 +1,2 @@ +provider "linode" { +} diff --git a/main.tf b/main.tf index 7ecfb91..25a39a7 100644 --- a/main.tf +++ b/main.tf @@ -5,5 +5,9 @@ terraform { source = "namecheap/namecheap" version = ">= 2.0.0" } + linode = { + source = "linode/linode" + version = ">= 1.29.0" + } } } diff --git a/run_terraform b/run_terraform index c3e9e74..9e7dd0f 100755 --- a/run_terraform +++ b/run_terraform @@ -2,7 +2,11 @@ export HTTP_PROXY=caladan:8888 export HTTPS_PROXY=caladan:8888 + NAMECHEAP_API_KEY=$(pass namecheap.com/api_key) export NAMECHEAP_API_KEY +LINODE_TOKEN=$(pass linode.com/token) +export LINODE_TOKEN + terraform "$@"