Fix issue with Azure instance being inaccessible #1539
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Terraform code | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
env: | |
TF_VERSION: 1.2.1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@main | |
- name: Cache Terraform | |
id: cache-terraform | |
uses: actions/cache@v2 | |
with: | |
path: ~/bin | |
key: terraform-${{ env.TF_VERSION }} | |
- name: Download terraform | |
if: steps.cache-terraform.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p "${HOME}/bin" | |
curl -sSL -o terraform.zip "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip" | |
unzip terraform.zip | |
mv -v terraform "${HOME}/bin/terraform" | |
~/bin/terraform version | |
- name: Create SSH keys | |
run: | | |
ssh-keygen -b 2048 -t rsa -q -N "" -f ~/.ssh/id_rsa | |
- name: Test AWS | |
uses: ./.github/actions/test_provider | |
with: | |
provider: 'aws' | |
- name: Test Azure | |
uses: ./.github/actions/test_provider | |
with: | |
provider: 'azure' | |
- name: Test GCP | |
uses: ./.github/actions/test_provider | |
with: | |
provider: 'gcp' | |
- name: Test OpenStack | |
uses: ./.github/actions/test_provider | |
with: | |
provider: 'openstack' | |
- name: Test OVH | |
uses: ./.github/actions/test_provider | |
with: | |
provider: 'ovh' | |
- name: Test CloudFlare DNS | |
run: | | |
terraform -chdir=dns/cloudflare init | |
terraform -chdir=dns/cloudflare validate | |
- name: Test Google Cloud DNS | |
run: | | |
terraform -chdir=dns/gcloud init | |
terraform -chdir=dns/gcloud validate |