Skip to content

Commit

Permalink
fix: Versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
B&R committed Mar 25, 2023
1 parent 77ddaf5 commit dfdc0e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helm/wordpress-hardened/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: wordpress-hardened
description: "Lightweight Wordpress installation with additional security fixes"
type: application
version: 0.0-latest-master
appVersion: "" # replaced by CI on build stage
version: 0.0.0-latest-master
appVersion: "master" # replaced by CI on build stage
4 changes: 3 additions & 1 deletion helm/wordpress-hardened/bin/get-app-version
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash
set -e
cat ../../Dockerfile | grep "FROM wordpress" | grep -P -o '[0-9.]+' | head -1

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo -n $(cat ${SCRIPT_DIR}/../../../Dockerfile | grep "FROM wordpress" | grep -P -o '[0-9.]+' | head -1)
2 changes: 1 addition & 1 deletion helm/wordpress-hardened/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ spec:
# WordPress container
# ================================================================
- name: app
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
image: {{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}
imagePullPolicy: Always
env:
{{- with .Values.env }}
Expand Down

0 comments on commit dfdc0e1

Please sign in to comment.