Skip to content

Commit 6d7dfd1

Browse files
feat: update terraform backend and add project files
- Update S3 backend to new Timeweb storage endpoint - Add kubeconfig output for task automation - Add semantic-release configuration - Add MIT LICENSE - Add terraform provider lock file 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 1794985 commit 6d7dfd1

File tree

5 files changed

+125
-2
lines changed

5 files changed

+125
-2
lines changed

.releaserc.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "conventionalcommits",
8+
"releaseRules": [
9+
{"type": "feat", "release": "minor"},
10+
{"type": "fix", "release": "patch"},
11+
{"type": "perf", "release": "patch"},
12+
{"type": "revert", "release": "patch"},
13+
{"type": "docs", "release": "patch"},
14+
{"type": "style", "release": "patch"},
15+
{"type": "refactor", "release": "patch"},
16+
{"type": "test", "release": "patch"},
17+
{"type": "ci", "release": "patch"},
18+
{"type": "chore", "release": "patch"},
19+
{"type": "build", "release": "patch"},
20+
{"breaking": true, "release": "major"},
21+
{"scope": "no-release", "release": false}
22+
],
23+
"parserOpts": {
24+
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
25+
}
26+
}
27+
],
28+
[
29+
"@semantic-release/release-notes-generator",
30+
{
31+
"preset": "conventionalcommits",
32+
"presetConfig": {
33+
"types": [
34+
{"type": "feat", "section": "🚀 Features"},
35+
{"type": "fix", "section": "🐛 Bug Fixes"},
36+
{"type": "perf", "section": "⚡ Performance Improvements"},
37+
{"type": "revert", "section": "⏪ Reverts"},
38+
{"type": "docs", "section": "📚 Documentation"},
39+
{"type": "style", "section": "💄 Styles"},
40+
{"type": "refactor", "section": "♻️ Code Refactoring"},
41+
{"type": "test", "section": "✅ Tests"},
42+
{"type": "ci", "section": "🔧 CI/CD"},
43+
{"type": "chore", "section": "🏗️ Chores"},
44+
{"type": "build", "section": "📦 Build System"}
45+
]
46+
},
47+
"writerOpts": {
48+
"commitsSort": ["subject", "scope"]
49+
}
50+
}
51+
],
52+
[
53+
"@semantic-release/changelog",
54+
{
55+
"changelogFile": "CHANGELOG.md"
56+
}
57+
],
58+
[
59+
"@semantic-release/github",
60+
{
61+
"assets": [
62+
{
63+
"path": "CHANGELOG.md",
64+
"label": "Changelog"
65+
}
66+
],
67+
"successComment": false,
68+
"failComment": false,
69+
"releasedLabels": false
70+
}
71+
],
72+
[
73+
"@semantic-release/git",
74+
{
75+
"assets": ["CHANGELOG.md"],
76+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
77+
}
78+
]
79+
]
80+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Yevgeny Kulikov
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

terraform/timeweb/.terraform.lock.hcl

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terraform/timeweb/backend.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
terraform {
22
backend "s3" {
3-
bucket = "2038a447-9142-45c8-bcd6-47e98b04fbb2"
3+
bucket = "ceae9495-895a43c8-e4e3-424e-9599-6e5b95862164"
44
key = "terraform/infra.tfstate"
55
region = "ru-1"
6-
endpoint = "s3.timeweb.cloud"
6+
endpoint = "https://s3.twcstorage.ru"
77

88
skip_credentials_validation = true
99
skip_metadata_api_check = true
1010
skip_region_validation = true
11+
skip_requesting_account_id = true
1112
}
1213
}

terraform/timeweb/outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ output "node_group_id" {
1212
description = "Node group ID"
1313
value = twc_k8s_node_group.workers.id
1414
}
15+
16+
output "kubeconfig" {
17+
description = "Kubernetes cluster kubeconfig"
18+
value = twc_k8s_cluster.main.kubeconfig
19+
sensitive = true
20+
}

0 commit comments

Comments
 (0)