generated from geekcell/terraform-aws-module-template
-
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 #3 from geekcell/update-tmplates
docs: update templates
- Loading branch information
Showing
16 changed files
with
132 additions
and
118 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,9 @@ | ||
README.md | ||
.github/workflows/* | ||
.terraform-docs.yml | ||
docs/20-badges.md | ||
docs/assets/logo.svg | ||
*.tf | ||
test/* | ||
go.mod | ||
go.sum |
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,32 @@ | ||
--- | ||
############################## | ||
## Dependabot configuration ## | ||
############################## | ||
|
||
# | ||
# Documentation: | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates | ||
# | ||
|
||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 0 | ||
|
||
# Maintain dependencies for Terraform Providers | ||
- package-ecosystem: "terraform" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 0 | ||
|
||
# Maintain dependencies for Golang | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 0 |
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 |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
|
||
... | ||
|
||
## How this PR fixes it | ||
|
||
... | ||
|
||
## Readiness Checklist | ||
|
||
### Author/Contributor | ||
|
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,7 +1,7 @@ | ||
--- | ||
#################################### | ||
## Draft releases on Push to main ## | ||
#################################### | ||
##################### | ||
## Create releases ## | ||
##################### | ||
|
||
# | ||
# Documentation: | ||
|
@@ -13,9 +13,8 @@ on: | |
push: | ||
branches: [ main ] | ||
tags: [ 'v*.*.*' ] | ||
|
||
permissions: | ||
contents: write | ||
pull_request: | ||
types: [ labeled ] | ||
|
||
################# | ||
# Start the job # | ||
|
@@ -26,6 +25,7 @@ jobs: | |
############### | ||
create-release: | ||
name: Create Release | ||
if: github.event.action != 'labeled' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
|
@@ -75,3 +75,22 @@ jobs: | |
tag_name: ${{ steps.tag.outputs.value }} | ||
draft: false | ||
prerelease: false | ||
|
||
########################### | ||
# Release preview comment # | ||
########################### | ||
release-check: | ||
if: github.event.action == 'labeled' | ||
runs-on: ubuntu-latest | ||
steps: | ||
############################ | ||
# Checkout the source code # | ||
############################ | ||
- name: Checkout Code | ||
uses: actions/[email protected] | ||
|
||
####################### | ||
# Post status comment # | ||
####################### | ||
- name: Post bumpr status comment | ||
uses: haya14busa/action-bumpr@v1 |
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 |
---|---|---|
|
@@ -10,7 +10,9 @@ | |
|
||
name: Sync templates | ||
on: | ||
workflow_dispatch: | ||
workflow_dispatch: # Trigger manually | ||
schedule: | ||
- cron: "0 0 1 * *" # Run at 00:00 on the first day of every month | ||
|
||
########################## | ||
# Prevent duplicate jobs # | ||
|
@@ -36,7 +38,7 @@ jobs: | |
- name: Sync labels | ||
uses: EndBug/[email protected] | ||
with: | ||
config-file: https://raw.githubusercontent.com/geekcell/template-terraform-module/main/.github/labels.yaml | ||
config-file: https://gist.githubusercontent.com/Ic3w0lf/f5520c5f19d7098966f692c120f7a197/raw/75b134f76fbc55e2e64bd66f04e571d6d74b815e/terraform-aws-module-labels.yaml | ||
|
||
####################### | ||
# Sync template files # | ||
|
@@ -50,33 +52,12 @@ jobs: | |
############################ | ||
- name: Checkout Code | ||
uses: actions/[email protected] | ||
with: | ||
token: ${{ secrets.GEEKCELL_PAT_WORKFLOWS }} | ||
|
||
######################## | ||
# Patch template files # | ||
######################## | ||
- name: Force patching of template files | ||
run: | | ||
yes y | make setup/update-template | ||
#################### | ||
# Update README.md # | ||
#################### | ||
- name: Terraform docs | ||
uses: terraform-docs/[email protected] | ||
with: | ||
config-file: .terraform-docs.yml | ||
git-push: false | ||
|
||
############# | ||
# Create PR # | ||
############# | ||
- name: Create PR | ||
uses: peter-evans/[email protected] | ||
####################### | ||
# Sync template files # | ||
####################### | ||
- name: actions-template-sync | ||
uses: AndreasAugustin/[email protected] | ||
with: | ||
token: ${{ secrets.GEEKCELL_PAT_WORKFLOWS }} | ||
title: Updated template files | ||
commit-message: Update template files from main repo | ||
branch: update-template-files | ||
delete-branch: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_repo_path: geekcell/terraform-aws-module-template |
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,16 +1,18 @@ | ||
repos: | ||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.76.0 | ||
rev: v1.80.0 | ||
hooks: | ||
- id: terraform_docs | ||
- id: terraform_fmt | ||
- id: terraform_validate | ||
args: | ||
- --hook-config=--retry-once-with-cleanup=true | ||
exclude: '^[^/]+$' | ||
- id: terraform_tflint | ||
exclude: ^examples/ | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[![Geek Cell GmbH](https://raw.githubusercontent.com/geekcell/.github/main/geekcell-github-banner.png)](https://www.geekcell.io/) |
File renamed without changes.
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
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.