Compare commits
1 Commits
119997e273
...
f2b4e6f80e
| Author | SHA1 | Date | |
|---|---|---|---|
| f2b4e6f80e |
@@ -20,7 +20,7 @@ steps:
|
||||
commands:
|
||||
- echo "$${CI_SSH_KEY}" | base64 -d > id_rsa
|
||||
- chmod 600 id_rsa
|
||||
- echo 'lawndale_libvirt_uri_extra = {"sshauth"="privkey","keyfile"="'$${PWD}'/id_rsa","no_verify"="1"}' >> ci.tfvars
|
||||
- echo 'lawndale_libvirt_uri_extra = {"sshauth"="privkey","keyfile"="'$${PWD}'/id_rsa","no_Verify"="1"}' >> ci.tfvars
|
||||
- terraform init
|
||||
environment:
|
||||
CI_SSH_KEY:
|
||||
@@ -33,6 +33,8 @@ steps:
|
||||
- name: terraform plan
|
||||
image: hashicorp/terraform:1.1.8
|
||||
commands:
|
||||
- mkdir -p ~/.ssh
|
||||
- cp -a id_rsa ~/.ssh/id_rsa
|
||||
- terraform plan -var-file ci.tfvars -out .tfplan
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
@@ -54,6 +56,8 @@ steps:
|
||||
- push
|
||||
image: hashicorp/terraform:1.1.8
|
||||
commands:
|
||||
- mkdir -p ~/.ssh
|
||||
- cp -a id_rsa ~/.ssh/id_rsa
|
||||
- terraform apply -var-file ci.tfvars .tfplan
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
@@ -69,6 +73,6 @@ steps:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 007cc7fc0dbdc2ae54a59dbc6c673e33e4f94831189eb3b6fd4b0b0f8adf703f
|
||||
hmac: af59d9cab72f3df02ec380568ca3feaddcd9088f4aef91614e7d75c043772666
|
||||
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user