This commit is contained in:
parent
66d387fdd1
commit
4664aec440
78
.drone.yml
78
.drone.yml
@ -3,7 +3,12 @@ type: docker
|
|||||||
name: Apply Cloud infra changes
|
name: Apply Cloud infra changes
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Initialite Terraform resources
|
- name: Validate Terraform configuration
|
||||||
|
image: hashicorp/terraform
|
||||||
|
commands:
|
||||||
|
- terraform validate
|
||||||
|
|
||||||
|
- name: Apply changes
|
||||||
environment:
|
environment:
|
||||||
ARM_CLIENT_ID:
|
ARM_CLIENT_ID:
|
||||||
from_secret: ARM_CLIENT_ID
|
from_secret: ARM_CLIENT_ID
|
||||||
@ -26,76 +31,5 @@ steps:
|
|||||||
image: hashicorp/terraform
|
image: hashicorp/terraform
|
||||||
commands:
|
commands:
|
||||||
- terraform init
|
- terraform init
|
||||||
|
|
||||||
- name: Validate Terraform configuration
|
|
||||||
environment:
|
|
||||||
ARM_CLIENT_ID:
|
|
||||||
from_secret: ARM_CLIENT_ID
|
|
||||||
ARM_CLIENT_SECRET:
|
|
||||||
from_secret: ARM_CLIENT_SECRET
|
|
||||||
ARM_SUBSCRIPTION_ID:
|
|
||||||
from_secret: ARM_SUBSCRIPTION_ID
|
|
||||||
ARM_TENANT_ID:
|
|
||||||
from_secret: ARM_TENANT_ID
|
|
||||||
CLOUDFLARE_EMAIL:
|
|
||||||
from_secret: CLOUDFLARE_EMAIL
|
|
||||||
CLOUDFLARE_API_TOKEN:
|
|
||||||
from_secret: CLOUDFLARE_API_TOKEN
|
|
||||||
ARTIFACTORY_USERNAME:
|
|
||||||
from_secret: ARTIFACTORY_USERNAME
|
|
||||||
ARTIFACTORY_PASSWORD:
|
|
||||||
from_secret: ARTIFACTORY_PASSWORD
|
|
||||||
ARTIFACTORY_URL:
|
|
||||||
from_secret: ARTIFACTORY_URL
|
|
||||||
image: hashicorp/terraform
|
|
||||||
commands:
|
|
||||||
- terraform validate
|
|
||||||
|
|
||||||
- name: Check state changes in infrastructure
|
|
||||||
environment:
|
|
||||||
ARM_CLIENT_ID:
|
|
||||||
from_secret: ARM_CLIENT_ID
|
|
||||||
ARM_CLIENT_SECRET:
|
|
||||||
from_secret: ARM_CLIENT_SECRET
|
|
||||||
ARM_SUBSCRIPTION_ID:
|
|
||||||
from_secret: ARM_SUBSCRIPTION_ID
|
|
||||||
ARM_TENANT_ID:
|
|
||||||
from_secret: ARM_TENANT_ID
|
|
||||||
CLOUDFLARE_EMAIL:
|
|
||||||
from_secret: CLOUDFLARE_EMAIL
|
|
||||||
CLOUDFLARE_API_TOKEN:
|
|
||||||
from_secret: CLOUDFLARE_API_TOKEN
|
|
||||||
ARTIFACTORY_USERNAME:
|
|
||||||
from_secret: ARTIFACTORY_USERNAME
|
|
||||||
ARTIFACTORY_PASSWORD:
|
|
||||||
from_secret: ARTIFACTORY_PASSWORD
|
|
||||||
ARTIFACTORY_URL:
|
|
||||||
from_secret: ARTIFACTORY_URL
|
|
||||||
image: hashicorp/terraform
|
|
||||||
commands:
|
|
||||||
- terraform plan
|
- terraform plan
|
||||||
|
|
||||||
- name: Apply changes
|
|
||||||
|
|
||||||
environment:
|
|
||||||
ARM_CLIENT_ID:
|
|
||||||
from_secret: ARM_CLIENT_ID
|
|
||||||
ARM_CLIENT_SECRET:
|
|
||||||
from_secret: ARM_CLIENT_SECRET
|
|
||||||
ARM_SUBSCRIPTION_ID:
|
|
||||||
from_secret: ARM_SUBSCRIPTION_ID
|
|
||||||
ARM_TENANT_ID:
|
|
||||||
from_secret: ARM_TENANT_ID
|
|
||||||
CLOUDFLARE_EMAIL:
|
|
||||||
from_secret: CLOUDFLARE_EMAIL
|
|
||||||
CLOUDFLARE_API_TOKEN:
|
|
||||||
from_secret: CLOUDFLARE_API_TOKEN
|
|
||||||
ARTIFACTORY_USERNAME:
|
|
||||||
from_secret: ARTIFACTORY_USERNAME
|
|
||||||
ARTIFACTORY_PASSWORD:
|
|
||||||
from_secret: ARTIFACTORY_PASSWORD
|
|
||||||
ARTIFACTORY_URL:
|
|
||||||
from_secret: ARTIFACTORY_URL
|
|
||||||
image: hashicorp/terraform
|
|
||||||
commands:
|
|
||||||
- terraform apply -auto-approve
|
- terraform apply -auto-approve
|
||||||
|
Reference in New Issue
Block a user