mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 12:43:32 +09:00
build(talos-log-collector): sync Chart.yaml appVersion on make update
make update bumped the Dockerfile ARG VERSION but left Chart.yaml appVersion untouched, so the two drifted on every upstream bump. Update appVersion in the same target. Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
This commit is contained in:
1 file changed
+2
-1
@@ -9,7 +9,8 @@ test:
|
||||
|
||||
update:
|
||||
ver=$$(curl -sSL "https://api.github.com/repos/vectordotdev/vector/releases" | jq -r '[.[] | select(.prerelease == false) | .tag_name | select(startswith("v0."))][0]' | sed 's/^v//') && \
|
||||
$(SED_INPLACE) "/ARG VERSION/ s|=.*|=$${ver}-alpine|g" images/vector/Dockerfile
|
||||
$(SED_INPLACE) "/ARG VERSION/ s|=.*|=$${ver}-alpine|g" images/vector/Dockerfile && \
|
||||
VERSION="$${ver}" yq -i '.appVersion = strenv(VERSION)' Chart.yaml
|
||||
|
||||
image:
|
||||
docker buildx build images/vector \
|
||||
|
||||
Reference in new issue
Block a user