Skip to content

Commit 3a470ba

Browse files
authored
Cleanup and add release workflow (#29)
1 parent 3d5d31f commit 3a470ba

File tree

6 files changed

+40
-14
lines changed

6 files changed

+40
-14
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: "Release"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Create Release
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
TAG: ${{ github.ref_name }}
20+
run: |
21+
gh release create "$TAG" \
22+
--repo "${{ github.repository }}" \
23+
--title "${TAG#v}" \
24+
--generate-notes

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# Ignore plan output files
1313
plan.out
1414

15-
# Ignore Infracost directories and files
16-
.infracost
17-
1815
# Other Files
1916
*.log
2017
*.bak

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44

55
[![OpenTofu Tests](https://github.com/osinfra-io/opentofu-kubernetes-datadog-operator/actions/workflows/test.yml/badge.svg)](https://github.com/osinfra-io/opentofu-kubernetes-datadog-operator/actions/workflows/test.yml) [![Dependabot](https://github.com/osinfra-io/opentofu-kubernetes-datadog-operator/actions/workflows/dependabot.yml/badge.svg)](https://github.com/osinfra-io/opentofu-kubernetes-datadog-operator/actions/workflows/dependabot.yml)
66

7-
**[Infracost](https://www.infracost.io):**
8-
9-
[![infracost](https://img.shields.io/endpoint?url=https://dashboard.api.infracost.io/shields/json/cbeecfe3-576f-4553-984c-e451a575ee47/repos/c800a043-c5ac-437b-9ca7-5c76dc338309/branch/ab8e9b56-728f-4aed-a3c0-0f87462c2f14)](https://dashboard.infracost.io/org/osinfra-io/repos/c800a043-c5ac-437b-9ca7-5c76dc338309?tab=settings)
10-
11-
💵 Monthly estimates based on Infracost baseline costs.
12-
137
## Repository Description
148

159
OpenTofu **example** module for the Datadog Kubernetes Operator on Google Kubernetes Engine (GKE).
@@ -35,7 +29,6 @@ See the [documentation](https://docs.osinfra.io/fundamentals/development-setup)
3529
### 🛠️ Tools
3630

3731
- [helm](https://github.com/helm/helm)
38-
- [infracost](https://github.com/infracost/infracost)
3932
- [osinfra-pre-commit-hooks](https://github.com/osinfra-io/pre-commit-hooks)
4033
- [pre-commit](https://github.com/pre-commit/pre-commit)
4134

@@ -57,6 +50,15 @@ tofu init
5750
tofu test
5851
```
5952

53+
### 📦 Release
54+
55+
To release a new version, simply push a new tag to the repository. The tag should be in the format `vX.Y.Z` where `X`, `Y`, and `Z` are integers.
56+
57+
```none
58+
git tag vX.Y.Z
59+
git push origin vX.Y.Z
60+
```
61+
6062
## 📓 OpenTofu Documentation
6163

6264
> A child module automatically inherits default (un-aliased) provider configurations from its parent. The provider versions below are informational only and do **not** need to align with the provider configurations from its parent.

shared/helpers.tofu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenTofu Core Child Module Helpers (osinfra.io)
2-
# https://github.com/osinfra-io/terraform-core-helpers
2+
# https://github.com/osinfra-io/opentofu-core-helpers
33

44
module "helpers" {
5-
source = "github.com/osinfra-io/terraform-core-helpers//child?ref=v0.1.2"
5+
source = "github.com/osinfra-io/opentofu-core-helpers//child?ref=bf324af8c32babb9cb27ac194caefe3f36ce3f30"
66
}

static-analysis.datadog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
schema-version: v1
2+
rulesets:
3+
- github-actions

tests/default.tftest.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# OpenTofu Tests
1+
# Test
22
# https://opentofu.org/docs/cli/commands/test
33

4-
# OpenTofu Mock Providers
4+
# Mock Providers
55
# https://opentofu.org/docs/cli/commands/test/#the-mock_provider-blocks
66

77
mock_provider "kubernetes" {}

0 commit comments

Comments
 (0)