Skip to content

Commit

Permalink
fix: fix/update-helm-version
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva committed Feb 3, 2025
1 parent 6d1e8a9 commit e3217e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ tasks:
cmds:
- |
BUILD_IMAGE=$(ko build {{ .MODULE }} --image-label org.opencontainers.image.source=https://github.com/stuttgart-things/clusterbook --push)
VERSION={{ .VERSION }}
echo ${BUILD_IMAGE}
dagger call -m github.com/jpadams/daggerverse/[email protected] scan-image --image-ref ${BUILD_IMAGE}
Expand All @@ -101,8 +102,8 @@ tasks:
# UPDATE HELM CHART
sed -i "s|^\(\s*image:\s*\).*|\1$(echo ${BUILD_IMAGE} | awk -F':' '{print $1}')|" {{ .CHART_DIR }}/{{ .PROJECT_NAME }}/values.yaml
sed -i "s|^\(\s*tag:\s*\).*|\1$(echo ${BUILD_IMAGE} | awk -F':' '{print $2}')|" {{ .CHART_DIR }}//{{ .PROJECT_NAME }}/values.yaml
sed -i "s/^version: .*/version: {{ .VERSION }}-chart/" {{ .META_PATH }}
sed -i "s/^appVersion: .*/appVersion: {{ .VERSION }}/" {{ .META_PATH }}
sed -i "s/^version: .*/version: ${VERSION}-chart/" {{ .META_PATH }}
sed -i "s/^appVersion: .*/appVersion: ${VERSION}/" {{ .META_PATH }}
# UPDATE HELMFILE
yq eval ".imageTag = \"$(echo ${BUILD_IMAGE} | awk -F':' '{print $2}')\"" -i {{ .PATH_HELM_ENV }}/{{ .K8S_ENV }}.yaml
Expand Down
4 changes: 2 additions & 2 deletions helm/clusterbook/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: clusterbook
description: A Helm chart for Kubernetes
type: application
version: v1.2.0-chart
appVersion: v1.2.0
version: dev-v1.2.0-chart
appVersion: dev-v1.2.0
dependencies:
- name: sthings-helm-toolkit
version: 2.4.74
Expand Down
4 changes: 2 additions & 2 deletions helm/clusterbook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ deployment:
memory: 128Mi
containers:
clusterbook:
image: ghcr.io/stuttgart-things/clusterbook/clusterbook-5f3bb9105a15fafb0e52842968611a61@sha256
image: ghcr.io/stuttgart-things/clusterbook/clusterbook
replicaCount: 1
imagePullPolicy: Always
tag: 66bf3b7ce1d609af5b767f84d0b30c2f2e635a0db8f25025c29719daa99f0adb
tag: v1.2.1
securityContext:
capabilities: {}

Expand Down
2 changes: 1 addition & 1 deletion helm/env/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableCertificateRequest: true
ingressDomain: fluxdev-3.sthings-vsphere.labul.sva.de #rke2.sthings-vsphere.labul.sva.de
issuerKind: ClusterIssuer
issuerName: vault-approle
imageTag: 66bf3b7ce1d609af5b767f84d0b30c2f2e635a0db8f25025c29719daa99f0adb
imageTag: v1.2.1

0 comments on commit e3217e9

Please sign in to comment.