-
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.
* autoscaling * add startup taint * add namespace and startup taint to template * templatlize * fix vals * fewer things * add a few missing values * create ns * update values * add nodeSelector and tolerations * remove digest * node group * fmt * syntax and startupTaints * fix syntax * update values * remove ng selector * lower cpu requests * use digest again * simplify repository * fix repository * add digest value * escape the . * fix subnets_name * subnet selector * use the outputs from karpenter module * create instance profile true * cleanup * without cluster tag * pass in vpc * enable debug and disable serviceMonitor * lower resources * fix merge issues
- Loading branch information
Showing
10 changed files
with
436 additions
and
193 deletions.
There are no files selected for viewing
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,101 @@ | ||
| name: 'Terraform Module CI' | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - '**/*.hcl' | ||
| - '**/*.tf' | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - '**/*.hcl' | ||
| - '**/*.tf' | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| validate: | ||
| name: 'Validate Module' | ||
| runs-on: self-hosted | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Setup Terraform | ||
| uses: hashicorp/setup-terraform@v2 | ||
| with: | ||
| terraform_version: 1.5.0 | ||
|
|
||
| - name: Terraform Init | ||
| run: | | ||
| terraform init -backend=false | ||
| - name: Terraform Format | ||
| run: | | ||
| terraform fmt -check | ||
| - name: Terraform Validate | ||
| run: | | ||
| terraform validate | ||
| - name: Run tflint | ||
| uses: terraform-linters/setup-tflint@v3 | ||
| if: github.event_name == 'pull_request' | ||
|
|
||
| - name: Lint Terraform | ||
| if: github.event_name == 'pull_request' | ||
| run: | | ||
| tflint --format compact | ||
| release: | ||
| name: 'Create Release' | ||
| needs: validate | ||
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
| runs-on: self-hosted | ||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.9' | ||
|
|
||
| - name: Install Commitizen | ||
| run: | | ||
| pip install commitizen | ||
| - name: Configure Git | ||
| run: | | ||
| git config --local user.email "action@github.com" | ||
| git config --local user.name "GitHub Action" | ||
| - name: Bump Version and Generate Changelog | ||
| id: cz | ||
| run: | | ||
| cz bump --yes | ||
| echo "new_version=$(cz version --project)" >> $GITHUB_OUTPUT | ||
| echo "changelog=$(cz changelog --dry-run)" >> $GITHUB_OUTPUT | ||
| - name: Create Release | ||
| uses: actions/create-release@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| tag_name: v${{ steps.cz.outputs.new_version }} | ||
| release_name: Release v${{ steps.cz.outputs.new_version }} | ||
| draft: false | ||
| prerelease: false | ||
| body: ${{ steps.cz.outputs.changelog }} |
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
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
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
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
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.