Ad Code

Responsive Advertisement

Ticker

6/recent/ticker-posts

For Bros info

 stages:

  - deploy

variables:
  # Azure credentials
  ARM_CLIENT_ID: 978e51a6-4b75-4700-bea6-36b1c2502673
  ARM_CLIENT_SECRET: A2W8Q~FDODX_p1T.-byFXvy3PofCYDoWxdCLjcv_
  ARM_SUBSCRIPTION_ID: 02c25119-ca91-4cfa-88cd-64a832320f4e
  ARM_TENANT_ID: b305c89e-87ca-42fc-b5f7-2f098eb4e44a

before_script:
  - apt-get update -qy
  - apt-get install -y wget unzip
  - wget https://releases.hashicorp.com/terraform/0.15.5/terraform_0.15.5_linux_amd64.zip
  - unzip terraform_0.15.5_linux_amd64.zip -d /usr/local/bin/
  - apt-get install -y python3 python3-pip
  - apt install -y python3-azure-cli
  - export PATH=$PATH:$(dirname $(which az)) 

deploy:
  stage: deploy
  script:
    # Initialize Terraform
    - export PATH=$PATH:$(dirname $(which az)) 

    - terraform init

    # Validate Terraform configuration
    - terraform validate

    # Plan Terraform changes
    - terraform plan -out=tfplan

    # Apply Terraform changes
    - terraform apply -auto-approve tfplan

Post a Comment

0 Comments

Ad Code

Responsive Advertisement