Skip to content

Commit 70745b2

Browse files
authored
Release automation (#57)
* cargo release setup with hook to sync chart with cargo toml Signed-off-by: clux <[email protected]> * release 0.12.8 * gen Signed-off-by: clux <[email protected]> --------- Signed-off-by: clux <[email protected]>
1 parent 59e40ba commit 70745b2

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "controller"
3-
version = "0.12.7"
3+
version = "0.12.8"
44
authors = ["clux <[email protected]>"]
55
edition = "2021"
66
default-run = "controller"

charts/doc-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: doc-controller
33
description: document controller sample chart
44
type: application
55
version: 0.1.0
6-
appVersion: "0.12.5"
6+
appVersion: 0.12.8

justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ build-base: (_build "")
5353
# docker build with telemetry
5454
build-otel: (_build "telemetry")
5555

56+
5657
# local helper for test-telemetry and run-telemetry
5758
# forward grpc otel port from svc/promstack-tempo in monitoring
5859
forward-tempo:

release.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Release process :: cargo-release >= 0.23
2+
#
3+
# Dependencies: https://kube.rs/tools
4+
#
5+
# 1. cargo release minor --execute
6+
7+
# Reference
8+
# https://github.com/sunng87/cargo-release/blob/master/docs/reference.md
9+
10+
pre-release-replacements = [
11+
{file="charts/doc-controller/Chart.yaml", search="appVersion: .*", replace="appVersion: {{version}}"},
12+
]
13+
pre-release-commit-message = "release {{version}}"
14+
push = false
15+
tag = true
16+
tag-name = "{{version}}"
17+
sign-commit = true
18+
sign-tag = true

yaml/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
labels:
99
app: doc-controller
1010
app.kubernetes.io/name: doc-controller
11-
app.kubernetes.io/version: "0.12.5"
11+
app.kubernetes.io/version: "0.12.8"
1212
namespace: default
1313
automountServiceAccountToken: true
1414
---
@@ -51,7 +51,7 @@ metadata:
5151
labels:
5252
app: doc-controller
5353
app.kubernetes.io/name: doc-controller
54-
app.kubernetes.io/version: "0.12.5"
54+
app.kubernetes.io/version: "0.12.8"
5555
spec:
5656
type: ClusterIP
5757
ports:
@@ -71,7 +71,7 @@ metadata:
7171
labels:
7272
app: doc-controller
7373
app.kubernetes.io/name: doc-controller
74-
app.kubernetes.io/version: "0.12.5"
74+
app.kubernetes.io/version: "0.12.8"
7575
spec:
7676
replicas: 1
7777
selector:
@@ -89,7 +89,7 @@ spec:
8989
{}
9090
containers:
9191
- name: doc-controller
92-
image: clux/controller:0.12.5
92+
image: clux/controller:0.12.8
9393
imagePullPolicy: IfNotPresent
9494
securityContext:
9595
{}

0 commit comments

Comments
 (0)