Skip to content

Commit

Permalink
fix: include martens yq and revert the additional target
Browse files Browse the repository at this point in the history
  • Loading branch information
TSnowden-1311 committed Oct 23, 2024
1 parent ebd493e commit a54a95d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RESOURCE_YAML := ${CHART_DIR}/templates/resource.yaml

CHART_REPO := gs://jenkinsxio/charts

prep:
fetch:
rm -f ${CHART_DIR}/templates/*.yaml
mkdir -p ${CHART_DIR}/templates
ifeq ($(CHART_VERSION),latest)
Expand All @@ -31,10 +31,8 @@ endif
rm -f ${RESOURCE_YAML} args.yaml
# Copy src templates
cp src/templates/* ${CHART_DIR}/templates

fetch: prep
# Set value in Chart.yaml
yq eval -i '.appVersion = "$(shell yq eval '.data.version | sub("v"; "")' ${CHART_DIR}/templates/dashboard-info-cm.yaml)"' ${CHART_DIR}/Chart.yaml
yq eval -i '.appVersion = (load("$(CHART_DIR)/templates/dashboard-info-cm.yaml").data.version | sub("v"; ""))' ${CHART_DIR}/Chart.yaml

build:
rm -rf Chart.lock
Expand Down

0 comments on commit a54a95d

Please sign in to comment.