Skip to content

Commit

Permalink
Release automation (#57)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
clux authored Aug 9, 2023
1 parent 59e40ba commit 70745b2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "controller"
version = "0.12.7"
version = "0.12.8"
authors = ["clux <[email protected]>"]
edition = "2021"
default-run = "controller"
Expand Down
2 changes: 1 addition & 1 deletion charts/doc-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: doc-controller
description: document controller sample chart
type: application
version: 0.1.0
appVersion: "0.12.5"
appVersion: 0.12.8
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ build-base: (_build "")
# docker build with telemetry
build-otel: (_build "telemetry")


# local helper for test-telemetry and run-telemetry
# forward grpc otel port from svc/promstack-tempo in monitoring
forward-tempo:
Expand Down
18 changes: 18 additions & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Release process :: cargo-release >= 0.23
#
# Dependencies: https://kube.rs/tools
#
# 1. cargo release minor --execute

# Reference
# https://github.com/sunng87/cargo-release/blob/master/docs/reference.md

pre-release-replacements = [
{file="charts/doc-controller/Chart.yaml", search="appVersion: .*", replace="appVersion: {{version}}"},
]
pre-release-commit-message = "release {{version}}"
push = false
tag = true
tag-name = "{{version}}"
sign-commit = true
sign-tag = true
8 changes: 4 additions & 4 deletions yaml/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
labels:
app: doc-controller
app.kubernetes.io/name: doc-controller
app.kubernetes.io/version: "0.12.5"
app.kubernetes.io/version: "0.12.8"
namespace: default
automountServiceAccountToken: true
---
Expand Down Expand Up @@ -51,7 +51,7 @@ metadata:
labels:
app: doc-controller
app.kubernetes.io/name: doc-controller
app.kubernetes.io/version: "0.12.5"
app.kubernetes.io/version: "0.12.8"
spec:
type: ClusterIP
ports:
Expand All @@ -71,7 +71,7 @@ metadata:
labels:
app: doc-controller
app.kubernetes.io/name: doc-controller
app.kubernetes.io/version: "0.12.5"
app.kubernetes.io/version: "0.12.8"
spec:
replicas: 1
selector:
Expand All @@ -89,7 +89,7 @@ spec:
{}
containers:
- name: doc-controller
image: clux/controller:0.12.5
image: clux/controller:0.12.8
imagePullPolicy: IfNotPresent
securityContext:
{}
Expand Down

0 comments on commit 70745b2

Please sign in to comment.