Skip to content

Commit 145e79e

Browse files
committed
feat: add pre-commit hook and release workflow
1 parent da06c2b commit 145e79e

File tree

8 files changed

+12401
-0
lines changed

8 files changed

+12401
-0
lines changed

.github/workflows/release.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
jobs:
2+
release:
3+
name: Run semantic-release
4+
runs-on: ubuntu-20.04
5+
steps:
6+
- uses: actions/checkout@v2
7+
- uses: actions/setup-node@v2
8+
with:
9+
node-version: 16
10+
- run: npm ci
11+
- env:
12+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
run: npx semantic-release@18
16+
on:
17+
push:
18+
branches:
19+
- main

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ override.tf.json
2727

2828
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
2929
# example: *tfplan*
30+
# Dependency directories
31+
node_modules/

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,50 @@
77
</div>
88

99
<!-- BEGIN_TF_DOCS -->
10+
11+
## Requirements
12+
13+
| Name | Version |
14+
| ------------------------------------------------------------------------ | -------- |
15+
| <a name="requirement_terraform"></a> [terraform](#requirement_terraform) | ~> 1.0 |
16+
| <a name="requirement_aws"></a> [aws](#requirement_aws) | >= 3.0.0 |
17+
18+
## Providers
19+
20+
| Name | Version |
21+
| ------------------------------------------------ | -------- |
22+
| <a name="provider_aws"></a> [aws](#provider_aws) | >= 3.0.0 |
23+
24+
## Modules
25+
26+
No modules.
27+
28+
## Resources
29+
30+
| Name | Type |
31+
| -------------------------------------------------------------------------------------------------------------------------- | ----------- |
32+
| [aws_caller_identity.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
33+
| [aws_eks_cluster.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster) | data source |
34+
35+
## Inputs
36+
37+
| Name | Description | Type | Default | Required |
38+
| --------------------------------------------------------------------- | ----------------------- | -------- | ------- | :------: |
39+
| <a name="input_cluster_name"></a> [cluster_name](#input_cluster_name) | The name of the cluster | `string` | n/a | yes |
40+
41+
## Outputs
42+
43+
| Name | Description |
44+
| -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
45+
| <a name="output_arn"></a> [arn](#output_arn) | The Amazon Resource Name (ARN) of the cluster |
46+
| <a name="output_certificate_authority"></a> [certificate_authority](#output_certificate_authority) | The certificate-authority-data for your cluster |
47+
| <a name="output_endpoint"></a> [endpoint](#output_endpoint) | The endpoint for your Kubernetes API server |
48+
| <a name="output_name"></a> [name](#output_name) | The name of the cluster |
49+
| <a name="output_open_id_connect_provider_arn"></a> [open_id_connect_provider_arn](#output_open_id_connect_provider_arn) | The Amazon Resource Name (ARN) of the IAM OpenID Connect provider |
50+
| <a name="output_open_id_connect_provider_issuer"></a> [open_id_connect_provider_issuer](#output_open_id_connect_provider_issuer) | The issuer for OIDC Provider |
51+
| <a name="output_subnet_ids"></a> [subnet_ids](#output_subnet_ids) | The subnets associated with your cluster |
52+
| <a name="output_vpc_id"></a> [vpc_id](#output_vpc_id) | The VPC associated with your cluster |
53+
1054
<!-- END_TF_DOCS -->
1155

1256
## Contributing

0 commit comments

Comments
 (0)