Skip to content

Commit

Permalink
chore: terraform lifecycle management automated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kuwas committed Dec 10, 2019
1 parent e4c2d98 commit 8a6ee4a
Show file tree
Hide file tree
Showing 18 changed files with 441 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
* @kuwas-io/default
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug
about: bug-type issue
title: "BUG » <title>"
---
<!--
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
-->
# What / Why #
> n/a
## When ##
* n/a

## Where ##
* n/a

## How ##

### Current Behavior ###
* n/a

### Steps to Reproduce ###
* n/a

### Expected Behavior ###
* n/a

## Who ##
* @kuwas-io/default

## References ##
* n/a
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
blank_issues_enabled : false
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Feature
about: feature-type issue
title: "FEATURE » <title>"
---
<!--
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
-->
# What / Why #
> n/a
## When ##
* n/a

## Where ##
* n/a

## How ##

### Current Behavior ###
* n/a

### Expected Behavior ###
* n/a

## Who ##
* @kuwas-io/default

## References ##
* n/a
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Question
about: question-type issue
title: "QUESTION » <title>"
---
<!--
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
-->
# What / Why #
> n/a
## Where ##
* n/a

## Who ##
* @kuwas-io/default

## References ##
* n/a
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!--
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
-->
# What / Why #
> n/a
## References ##
* n/a
39 changes: 39 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners
name : default
on :
push :
branches : [ "master" ]
tags : [ "v[0-9]+.[0-9]+.[0-9]+" ]
pull_request :
types :
- "opened"
- "reopened"
- "synchronize"

jobs :
default :
runs-on : ubuntu-latest
steps :
- name : checkout
uses : "actions/checkout@v1"
- name : npm install
run : "npm install"
- name : docker build raw
run : "docker build --tag $GITHUB_REPOSITORY:$GITHUB_SHA --file ./Dockerfile ."
- name : docker build latest
run : "docker build --tag $GITHUB_REPOSITORY:latest --file ./Dockerfile ."
- name : docker images all
run : "docker images --all"
- name : npx release
env : { GITHUB_TOKEN : "${{ secrets.GITHUB_TOKEN }}" }
run : "npx semantic-release"

61 changes: 61 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners
name : issue
on :
issues :
types :
- "opened"
- "reopened"
- "edited"
- "closed"
- "transferred"
- "demilestoned"
- "milestoned"
- "unpinned"
- "pinned"
- "unassigned"
- "assigned"
- "unlabeled"
- "labeled"
- "unlocked"
- "locked"

jobs :
default :
runs-on : ubuntu-latest
steps :
- name : default label bug
uses : "npm/.github/actions/default@master"
with :
regex : '^(BUG)'
subject : '${{ github.event.issue.title }}'
input : 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "bug" ]'
token : '${{ secrets.GITHUB_TOKEN }}'
- name : default label feature
uses : "npm/.github/actions/default@master"
with :
regex : '^(FEATURE)'
subject : '${{ github.event.issue.title }}'
input : 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "feature" ]'
token : '${{ secrets.GITHUB_TOKEN }}'
- name : default label question
uses : "npm/.github/actions/default@master"
with :
regex : '^(QUESTION)'
subject : '${{ github.event.issue.title }}'
input : 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "question" ]'
token : '${{ secrets.GITHUB_TOKEN }}'
- name : default assignees actor
uses : "npm/.github/actions/default@master"
with :
input : 'issues | addAssignees | context.repo | issue_number:${{ github.event.issue.number }} | assignees:[ "${{ github.actor }}" ]'
token : '${{ secrets.GITHUB_TOKEN }}'

60 changes: 60 additions & 0 deletions .github/workflows/pulls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners
name : pulls
on :
pull_request :
types :
- "opened"
- "reopened"
- "edited"
- "closed"
- "synchronize"
- "ready_for_review"
- "review_requested"
- "review_request_removed"
- "unassigned"
- "assigned"
- "unlabeled"
- "labeled"
- "unlocked"
- "locked"

jobs :
default :
runs-on : ubuntu-latest
steps :
- name : default label bug
uses : "npm/.github/actions/default@master"
with :
regex : '^(fix)(\([\w\-]+\))?(\!)?(\:)'
subject : '${{ github.event.pull_request.title }}'
input : 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "bug" ]'
token : '${{ secrets.GITHUB_TOKEN }}'
- name : default label feature
uses : "npm/.github/actions/default@master"
with :
regex : '^(feat)(\([\w\-]+\))?(\!)?(\:)'
subject : '${{ github.event.pull_request.title }}'
input : 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "feature" ]'
token : '${{ secrets.GITHUB_TOKEN }}'
- name : default label chore
uses : "npm/.github/actions/default@master"
with :
regex : '^(chore)(\([\w\-]+\))?(\!)?(\:)'
subject : '${{ github.event.pull_request.title }}'
input : 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "chore" ]'
token : '${{ secrets.GITHUB_TOKEN }}'
- name : default assignees actor
uses : "npm/.github/actions/default@master"
with :
input : 'issues | addAssignees | context.repo | issue_number:${{ github.event.pull_request.number }} | assignees:[ "${{ github.actor }}" ]'
token : '${{ secrets.GITHUB_TOKEN }}'

42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
# git #
!.gitkeep
!.gitignore

# macos #
*.db
._*
.DS_*
.Spotlight*
.Trashes*

# ide #
*.iml
.idea

# go #
*.out
*.test
vendor

# js #
node_modules

# kube #
kubeconfig*

# tf #
*.tfstate*
*.tfvars*
.terraform

# tmp #
*.*~
*.lock
*.log
*.pid
*.swp
tmp
4 changes: 4 additions & 0 deletions .gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# #####
# TERRAFORM LIFECYCLE MANAGED
# All changes will be overwritten
#####
FROM kuwas/alpine:latest
MAINTAINER "kuwas"
15 changes: 15 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ISC License

Copyright (c) @kuwas

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Loading

0 comments on commit 8a6ee4a

Please sign in to comment.