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

45 lines
995 B
YAML
Raw Normal View History

2022-04-25 22:30:25 +02:00
kind: pipeline
type: docker
name: Apply Cloud infra changes
environment:
ARM_CLIENT_ID:
2022-04-25 22:46:33 +02:00
from_secret: ARM_CLIENT_ID
2022-04-25 22:30:25 +02:00
ARM_CLIENT_SECRET:
2022-04-25 22:46:33 +02:00
from_secret: ARM_CLIENT_SECRET
2022-04-25 22:30:25 +02:00
ARM_SUBSCRIPTION_ID:
2022-04-25 22:46:33 +02:00
from_secret: ARM_SUBSCRIPTION_ID
2022-04-25 22:30:25 +02:00
ARM_TENANT_ID:
2022-04-25 22:46:33 +02:00
from_secret: ARM_TENANT_ID
2022-04-25 22:30:25 +02:00
CLOUDFLARE_EMAIL:
2022-04-25 22:46:33 +02:00
from_secret: CLOUDFLARE_EMAIL
2022-04-25 22:30:25 +02:00
CLOUDFLARE_API_TOKEN:
2022-04-25 22:46:33 +02:00
from_secret: CLOUDFLARE_API_TOKEN
2022-04-25 22:30:25 +02:00
ARTIFACTORY_USERNAME:
2022-04-25 22:46:33 +02:00
from_secret: ARTIFACTORY_USERNAME
2022-04-25 22:30:25 +02:00
ARTIFACTORY_PASSWORD:
2022-04-25 22:46:33 +02:00
from_secret: ARTIFACTORY_PASSWORD
2022-04-25 22:30:25 +02:00
ARTIFACTORY_URL:
2022-04-25 22:46:33 +02:00
from_secret: ARTIFACTORY_URL
2022-04-25 22:30:25 +02:00
steps:
2022-04-25 22:31:15 +02:00
- name: Initialite Terraform resources
image: hashicorp/terraform
commands:
- terraform init
2022-04-25 22:30:25 +02:00
- 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