ci: can't declare pipeline level secret envs
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -10,12 +10,6 @@ trigger:
|
||||
branch:
|
||||
- main
|
||||
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: terraform-aws-key-id
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: terraform-aws-secret-access-key
|
||||
|
||||
steps:
|
||||
- name: terraform init
|
||||
image: hashicorp/terraform:1.1.8
|
||||
@@ -29,11 +23,20 @@ steps:
|
||||
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
|
||||
CI_SSH_KEY:
|
||||
from_secret: ci-ssh-key
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: terraform-aws-key-id
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: terraform-aws-secret-access-key
|
||||
|
||||
- name: terraform plan
|
||||
image: hashicorp/terraform:1.1.8
|
||||
commands:
|
||||
- terraform plan -out .tfplan
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: terraform-aws-key-id
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: terraform-aws-secret-access-key
|
||||
|
||||
- name: terraform apply
|
||||
when:
|
||||
@@ -48,6 +51,6 @@ steps:
|
||||
# - terraform apply -plan .tfplan -auto-approve
|
||||
---
|
||||
kind: signature
|
||||
hmac: 27148d661f9be0ea64b8ac57e17774f150c39a02565c787ba793bdde3b798110
|
||||
hmac: 749e0dee63c0fa75bf15a7c3cf4cf0880acc60dc0ac417d2283a12f45216a7aa
|
||||
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user