forked from cosmo-workspace/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (20 loc) · 903 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Chart version
MANAGER_SEM_VERSION ?= 0.4.0
DASHBOARD_SEM_VERSION ?= 0.4.0
# Container Image version
MANAGER_APP_VERSION ?= v0.4.0
DASHBOARD_APP_VERSION ?= v0.4.0
# Whether as prerelease
PRERELEASE ?= false
# Update version in Chart.yaml
update-version:
sed -i.bk \
-e "s/version: [0-9]\+.[0-9]\+.[0-9]\+.*/version: ${MANAGER_SEM_VERSION}/" \
-e "s/appVersion: v[0-9]\+.[0-9]\+.[0-9]\+.*/appVersion: ${MANAGER_APP_VERSION}/" \
-e 's;artifacthub.io/prerelease: "\(true\|false\)";artifacthub.io/prerelease: "$(PRERELEASE)";' \
charts/cosmo-controller-manager/Chart.yaml
sed -i.bk \
-e "s/version: [0-9]\+.[0-9]\+.[0-9]\+.*/version: ${DASHBOARD_SEM_VERSION}/" \
-e "s/appVersion: v[0-9]\+.[0-9]\+.[0-9]\+.*/appVersion: ${DASHBOARD_APP_VERSION}/" \
-e 's;artifacthub.io/prerelease: "\(true\|false\)";artifacthub.io/prerelease: "$(PRERELEASE)";' \
charts/cosmo-dashboard/Chart.yaml