Skip to content

Commit

Permalink
build: fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
xopham committed Feb 1, 2024
1 parent a5243f4 commit 9873aea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
webhookName := semgr8s
image := $(shell yq e '.deployment.image.repository' charts/semgr8s/values.yaml)
version := $(shell yq e '.appVersion' charts/semgr8s/Chart.yaml)
tag := $(image):$(version)
tag := $(image):v$(version)

ns := semgr8ns

Expand All @@ -26,7 +26,7 @@ install:
@echo "####################"
@echo "## $(@)"
@echo "####################"
helm install semgr8s helm --create-namespace --namespace $(ns)
helm install semgr8s charts/semgr8s --create-namespace --namespace $(ns)

.PHONY:uninstall
uninstall:
Expand Down
4 changes: 2 additions & 2 deletions charts/semgr8s/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: semgr8s
description: Semgrep-based Policy Controller for Kubernetes
type: application
version: 0.1.1
appVersion: "0.1.1"
version: 0.1.0
appVersion: "0.1.0"
keywords:
- kubernetes
- admission controller
Expand Down
2 changes: 1 addition & 1 deletion charts/semgr8s/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.deployment.securityContext | nindent 12 }}
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag | default (print "v" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
ports:
- name: http
Expand Down

0 comments on commit 9873aea

Please sign in to comment.