Terraform the manual way
This commit is contained in:
parent
ae683f788b
commit
2091f14f90
22
.drone.yml
22
.drone.yml
@ -1,16 +1,20 @@
|
||||
pipeline:
|
||||
terraform:
|
||||
image: jmccann/drone-terraform
|
||||
plan: true
|
||||
root_dir: infrastructure/create-resources
|
||||
image: alpine
|
||||
environment:
|
||||
HCLOUD_TOKEN:
|
||||
from_secret: serverctl_hcloud_token
|
||||
remote:
|
||||
config:
|
||||
access_key:
|
||||
ACCESS_KEY:
|
||||
from_secret: serverctl_access_key
|
||||
secret_key:
|
||||
SECRET_KEY:
|
||||
from_secret: serverctl_secret_key
|
||||
secrets:
|
||||
hcloud_token: HCLOUD_TOKEN
|
||||
commands:
|
||||
- apk --update add curl
|
||||
- curl --silent --output terraform.zip "https://releases.hashicorp.com/terraform/1.1.6/terraform_1.1.6_linux_amd64.zip"
|
||||
- unzip terraform.zip ; rm -f terraform.zip; chmod +x terraform
|
||||
- mkdir -p ${HOME}/bin ; export PATH=${PATH}:${HOME}/bin; mv terraform ${HOME}/bin/
|
||||
- terraform -v
|
||||
- cd infrastructure/create-resources
|
||||
- terraform init
|
||||
- terraform validate
|
||||
- terraform plan
|
||||
|
Loading…
Reference in New Issue
Block a user