Skip to content

Commit

Permalink
Merge pull request #6 from zscaler/zpa-#5-upgrade-provider-version
Browse files Browse the repository at this point in the history
fix: Upgraded terraform provider versions
  • Loading branch information
willguibr authored Dec 15, 2023
2 parents cf52c19 + 96b05ef commit 14b096d
Show file tree
Hide file tree
Showing 31 changed files with 365 additions and 372 deletions.
101 changes: 0 additions & 101 deletions .github/actions/plan_apply/action.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/sub_cleanup/action.yml

This file was deleted.

89 changes: 89 additions & 0 deletions .github/workflows/ci.yml
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
21 changes: 0 additions & 21 deletions .github/workflows/lint_pr_title.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/pr_ci.yml

This file was deleted.

51 changes: 32 additions & 19 deletions .github/workflows/release.yml
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
days-before-close: 10
delete-branch: true
close-issue-message: This issue was automatically closed because of stale in 10 days
close-pr-message: This PR was automatically closed because of stale in 10 days
close-pr-message: This PR was automatically closed because of stale in 10 days
Loading

0 comments on commit 14b096d

Please sign in to comment.