Skip to content

Commit

Permalink
Create repo (#12)
Browse files Browse the repository at this point in the history
* Refactor repository references to use local variable for consistency

* Enhance GitHub repository management by adding environment support, refining secret handling, and improving collaborator permissions mapping

* terraform-docs: automated action

* Update terraform.yml

* Refactor GitHub workflows and update Terraform configurations for improved repository management

* Clean up whitespace in Terraform configuration files for consistency

* Remove redundant variable definition for GitHub branch update allowance

* Remove unused GitHub repository variables from Terraform configuration

* Remove unused push restrictions from GitHub branch protection configuration

* Remove unused security and analysis settings from GitHub repository configuration

* Refactor GitHub repository configuration to remove unused security settings and update visibility to public

* Format code for consistency in GitHub repository configuration

* Add environment variables for GitHub token and owner in Terraform test workflow

---------

Co-authored-by: Dave Arnold <dave@roknsound.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and GitHub committed Feb 19, 2025
1 parent 09cc896 commit 7b0b311
Show file tree
Hide file tree
Showing 17 changed files with 965 additions and 370 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/modtest-dev.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/terraform-doc.yaml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/terraform-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "Terraform Test and Tag"

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write
pull-requests: read

jobs:
terraform:
name: "Terraform Test"
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_OWNER: ${{ vars.GH_ORG }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "~>1.6.0"
terraform_wrapper: false

- name: Terraform Format
id: fmt
run: terraform fmt -check
continue-on-error: false

- name: Terraform Init
id: init
run: terraform init -backend=false

- name: Terraform Validate
id: validate
run: terraform validate

- name: Run Terraform Tests
id: test
run: terraform test

- name: Bump version and push tag
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: anothrNick/github-tag-action@1.67.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true
84 changes: 0 additions & 84 deletions .github/workflows/terraform.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/terraform.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7b0b311

Please sign in to comment.