Pass server version to container build
This commit is contained in:
@@ -27,7 +27,7 @@ HOST_CLIENT := $(BUILD)/$(HOSTOS)-$(HOSTARCH)/keeporg
|
|||||||
HOST_SERVER := $(BUILD)/$(HOSTOS)-$(HOSTARCH)/keeporgd
|
HOST_SERVER := $(BUILD)/$(HOSTOS)-$(HOSTARCH)/keeporgd
|
||||||
|
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
APP_NAME := keeporg
|
APP_NAME := keeporg
|
||||||
|
|
||||||
# ---------------------------------------------------------------- developing
|
# ---------------------------------------------------------------- developing
|
||||||
|
|
||||||
@@ -240,14 +240,14 @@ nginx:
|
|||||||
|
|
||||||
build-server: nginx
|
build-server: nginx
|
||||||
podman build \
|
podman build \
|
||||||
--build-arg APP_VERSION=${VERSION} \
|
--build-arg APP_VERSION=${VERSION_SERVER} \
|
||||||
--platform=linux/arm64 \
|
--platform=linux/arm64 \
|
||||||
-t repo.rcmd.space/$(APP_NAME):$(VERSION) \
|
-t repo.rcmd.space/$(APP_NAME):$(VERSION_SERVER) \
|
||||||
.
|
.
|
||||||
podman push repo.rcmd.space/$(APP_NAME):$(VERSION)
|
podman push repo.rcmd.space/$(APP_NAME):$(VERSION_SERVER)
|
||||||
podman image prune -f
|
podman image prune -f
|
||||||
|
|
||||||
deploy-server:
|
deploy-server:
|
||||||
helm upgrade --install --namespace "apps" --create-namespace $(APP_NAME) rcmd/rcmd-base -f ./config/variables/server.values.yaml --set "image.version=$(VERSION)"
|
helm upgrade --install --namespace "apps" --create-namespace $(APP_NAME) rcmd/rcmd-base -f ./config/variables/server.values.yaml --set "image.version=$(VERSION_SERVER)"
|
||||||
|
|
||||||
# www
|
# www
|
||||||
|
|||||||
Reference in New Issue
Block a user