-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from zscaler/zpa-#5-upgrade-provider-version
fix: Upgraded terraform provider versions
- Loading branch information
Showing
31 changed files
with
365 additions
and
372 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Terraform checks | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
terraform-linter: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
|
||
- name: Terraform Format | ||
id: fmt | ||
run: terraform fmt -check -recursive | ||
|
||
- name: Terraform Init | ||
id: init-zpa-app-connector-group | ||
run: | | ||
cd modules/terraform-zpa-app-connector-group | ||
terraform init | ||
- name: Terraform Validate | ||
id: validate-zpa-app-connector-group | ||
run: | | ||
cd modules/terraform-zpa-app-connector-group | ||
terraform validate -no-color | ||
- name: Terraform Init | ||
id: init-zpa-provisioning-key | ||
run: | | ||
cd modules/terraform-zpa-provisioning-key | ||
terraform init | ||
- name: Terraform Validate | ||
id: validate-zpa-provisioning-key | ||
run: | | ||
cd modules/terraform-zpa-provisioning-key | ||
terraform validate -no-color | ||
- name: Terraform Init | ||
id: init-zsac-acvm-azure | ||
run: | | ||
cd modules/terraform-zsac-acvm-azure | ||
terraform init | ||
- name: Terraform Validate | ||
id: validate-zsac-acvm-azure | ||
run: | | ||
cd modules/terraform-zsac-acvm-azure | ||
terraform validate -no-color | ||
- name: Terraform Init | ||
id: init-zsac-bastion-azure | ||
run: | | ||
cd modules/terraform-zsac-bastion-azure | ||
terraform init | ||
- name: Terraform Validate | ||
id: validate-zsac-bastion-azure | ||
run: | | ||
cd modules/terraform-zsac-bastion-azure | ||
terraform validate -no-color | ||
- name: Terraform Init | ||
id: init-zsac-network-azure | ||
run: | | ||
cd modules/terraform-zsac-network-azure | ||
terraform init | ||
- name: Terraform Validate | ||
id: validate-zsac-network-azure | ||
run: | | ||
cd modules/terraform-zsac-network-azure | ||
terraform validate -no-color | ||
- name: Terraform Init | ||
id: init-zsac-nsg-azure | ||
run: | | ||
cd modules/terraform-zsac-nsg-azure | ||
terraform init | ||
- name: Terraform Validate | ||
id: validate-zsac-nsg-azure | ||
run: | | ||
cd modules/terraform-zsac-nsg-azure | ||
terraform validate -no-color |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,37 @@ | ||
name: Release CI | ||
run-name: "Continous Release" | ||
|
||
|
||
permissions: | ||
contents: write | ||
issues: read | ||
id-token: write | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 1 * * 4' # this means every Thursday @1am UTC | ||
push: | ||
branches: | ||
- main | ||
- master | ||
paths: | ||
- '**/*.tpl' | ||
- '**/*.py' | ||
- '**/*.tf' | ||
- '.github/workflows/release.yml' | ||
|
||
jobs: | ||
release_wrkflw: | ||
name: Do release | ||
uses: zscaler/terraform-modules-zscaler-ci-workflows/.github/workflows/[email protected] | ||
secrets: inherit | ||
with: | ||
cloud: azure | ||
max_parallel: 10 | ||
tf_version: 1.2 1.3 1.4 1.5 | ||
do_apply: true | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
# Skip running release workflow on forks | ||
if: github.repository_owner == 'zscaler' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
with: | ||
semantic_version: 18.0.0 | ||
extra_plugins: | | ||
@semantic-release/[email protected] | ||
@semantic-release/[email protected] | ||
[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Oops, something went wrong.