Skip to content

Commit

Permalink
ci: add central workflows including release-please (#11)
Browse files Browse the repository at this point in the history
* chore: add CODEOWNERS file

* ci: add terraform-docs and linters workflows

* ci: add release-please workflow and associated modifications

* docs(terraform-docs): generate docs and write to README.adoc

Co-authored-by: lentidas <[email protected]>

Release-As: v1.0.0-alpha.1
  • Loading branch information
lentidas authored Nov 18, 2022
1 parent 11223d4 commit 1cb7d55
Show file tree
Hide file tree
Showing 11 changed files with 816 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: "Linters"

on:
pull_request:

jobs:
linters:
uses: camptocamp/devops-stack/.github/workflows/modules-linters.yaml@master
11 changes: 11 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: "Release"

on:
push:
branches:
- "main"

jobs:
release:
uses: camptocamp/devops-stack/.github/workflows/modules-release-please.yaml@master
11 changes: 11 additions & 0 deletions .github/workflows/terraform-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: "Terraform Docs"

on:
pull_request:

jobs:
terraform-docs:
uses: camptocamp/devops-stack/.github/workflows/modules-terraform-docs.yaml@master
with:
variants: "aks,eks,k3s"
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @camptocamp/is-devops-stack
177 changes: 177 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
// BEGIN_TF_DOCS
=== Requirements

No requirements.

=== Providers

The following providers are used by this module:

- [[provider_argocd]] <<provider_argocd,argocd>>

- [[provider_null]] <<provider_null,null>>

- [[provider_utils]] <<provider_utils,utils>>

=== Modules

No modules.

=== Resources

The following resources are used by this module:

- https://registry.terraform.io/providers/oboukili/argocd/latest/docs/resources/application[argocd_application.this] (resource)
- https://registry.terraform.io/providers/oboukili/argocd/latest/docs/resources/project[argocd_project.this] (resource)
- https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource[null_resource.dependencies] (resource)
- https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource[null_resource.this] (resource)
- https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/deep_merge_yaml[utils_deep_merge_yaml.values] (data source)

=== Required Inputs

The following input variables are required:

==== [[input_argocd_namespace]] <<input_argocd_namespace,argocd_namespace>>

Description: n/a

Type: `string`

==== [[input_base_domain]] <<input_base_domain,base_domain>>

Description: n/a

Type: `string`

==== [[input_cluster_name]] <<input_cluster_name,cluster_name>>

Description: n/a

Type: `string`

=== Optional Inputs

The following input variables are optional (have default values):

==== [[input_dependency_ids]] <<input_dependency_ids,dependency_ids>>

Description: n/a

Type: `map(string)`

Default: `{}`

==== [[input_helm_values]] <<input_helm_values,helm_values>>

Description: Helm values, passed as a list of HCL structures.

Type: `any`

Default: `[]`

==== [[input_namespace]] <<input_namespace,namespace>>

Description: n/a

Type: `string`

Default: `"loki-stack"`

==== [[input_target_revision]] <<input_target_revision,target_revision>>

Description: Override of target revision of the application chart.

Type: `string`

Default: `"v1.0.0"`

=== Outputs

The following outputs are exported:

==== [[output_id]] <<output_id,id>>

Description: n/a
// END_TF_DOCS
// BEGIN_TF_TABLES


= Providers

[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[provider_argocd]] <<provider_argocd,argocd>> |n/a
|[[provider_null]] <<provider_null,null>> |n/a
|[[provider_utils]] <<provider_utils,utils>> |n/a
|===

= Resources

[cols="a,a",options="header,autowidth"]
|===
|Name |Type
|https://registry.terraform.io/providers/oboukili/argocd/latest/docs/resources/application[argocd_application.this] |resource
|https://registry.terraform.io/providers/oboukili/argocd/latest/docs/resources/project[argocd_project.this] |resource
|https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource[null_resource.dependencies] |resource
|https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource[null_resource.this] |resource
|https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/deep_merge_yaml[utils_deep_merge_yaml.values] |data source
|===

= Inputs

[cols="a,a,a,a,a",options="header,autowidth"]
|===
|Name |Description |Type |Default |Required
|[[input_argocd_namespace]] <<input_argocd_namespace,argocd_namespace>>
|n/a
|`string`
|n/a
|yes

|[[input_base_domain]] <<input_base_domain,base_domain>>
|n/a
|`string`
|n/a
|yes

|[[input_cluster_name]] <<input_cluster_name,cluster_name>>
|n/a
|`string`
|n/a
|yes

|[[input_dependency_ids]] <<input_dependency_ids,dependency_ids>>
|n/a
|`map(string)`
|`{}`
|no

|[[input_helm_values]] <<input_helm_values,helm_values>>
|Helm values, passed as a list of HCL structures.
|`any`
|`[]`
|no

|[[input_namespace]] <<input_namespace,namespace>>
|n/a
|`string`
|`"loki-stack"`
|no

|[[input_target_revision]] <<input_target_revision,target_revision>>
|Override of target revision of the application chart.
|`string`
|`"v1.0.0"`
|no

|===

= Outputs

[cols="a,a",options="header,autowidth"]
|===
|Name |Description
|[[output_id]] <<output_id,id>> |n/a
|===
// END_TF_TABLES
Loading

0 comments on commit 1cb7d55

Please sign in to comment.