This repository has been archived on 2023-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
cloud-resources/.drone.yml
Torma Kristóf b55b37d0d7
Some checks failed
continuous-integration/drone/push Build is failing
try to move environment to step
2022-04-25 23:24:29 +02:00

44 lines
1.0 KiB
YAML

kind: pipeline
type: docker
name: Apply Cloud infra changes
steps:
- name: Initialite Terraform resources
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 init
- name: Validate Terraform configuration
image: hashicorp/terraform
commands:
- terraform validate
- name: Check state changes in infrastructure
image: hashicorp/terraform
commands:
- terraform plan
- name: Apply changes
image: hashicorp/terraform
commands:
- terraform apply -auto-approve