mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Add version tag to makefile images (#1654)
This commit is contained in:
parent
0a16434bdc
commit
81a8a0c856
|
@ -26,7 +26,7 @@ members = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "1.1.0-beta.13"
|
version = "1.1.0-beta.13-dev"
|
||||||
authors = [
|
authors = [
|
||||||
"William Brown <william@blackhats.net.au>",
|
"William Brown <william@blackhats.net.au>",
|
||||||
"James Hodgkinson <james@terminaloutcomes.com>",
|
"James Hodgkinson <james@terminaloutcomes.com>",
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -1,5 +1,6 @@
|
||||||
IMAGE_BASE ?= kanidm
|
IMAGE_BASE ?= kanidm
|
||||||
IMAGE_VERSION ?= devel
|
IMAGE_VERSION ?= devel
|
||||||
|
IMAGE_EXT_VERSION ?= 1.1.0-beta.13-dev
|
||||||
CONTAINER_TOOL_ARGS ?=
|
CONTAINER_TOOL_ARGS ?=
|
||||||
IMAGE_ARCH ?= "linux/amd64,linux/arm64"
|
IMAGE_ARCH ?= "linux/amd64,linux/arm64"
|
||||||
CONTAINER_BUILD_ARGS ?=
|
CONTAINER_BUILD_ARGS ?=
|
||||||
|
@ -17,10 +18,12 @@ help:
|
||||||
.PHONY: buildx/kanidmd
|
.PHONY: buildx/kanidmd
|
||||||
buildx/kanidmd: ## Build multiarch kanidm server images and push to docker hub
|
buildx/kanidmd: ## Build multiarch kanidm server images and push to docker hub
|
||||||
buildx/kanidmd:
|
buildx/kanidmd:
|
||||||
|
@echo $(IMAGE_EXT_VERSION)
|
||||||
@$(CONTAINER_TOOL) buildx build $(CONTAINER_TOOL_ARGS) \
|
@$(CONTAINER_TOOL) buildx build $(CONTAINER_TOOL_ARGS) \
|
||||||
--pull --push --platform $(IMAGE_ARCH) \
|
--pull --push --platform $(IMAGE_ARCH) \
|
||||||
-f server/Dockerfile \
|
-f server/Dockerfile \
|
||||||
-t $(IMAGE_BASE)/server:$(IMAGE_VERSION) \
|
-t $(IMAGE_BASE)/server:$(IMAGE_VERSION) \
|
||||||
|
-t $(IMAGE_BASE)/server:$(IMAGE_EXT_VERSION) \
|
||||||
--progress $(BUILDKIT_PROGRESS) \
|
--progress $(BUILDKIT_PROGRESS) \
|
||||||
--build-arg "KANIDM_BUILD_PROFILE=container_generic" \
|
--build-arg "KANIDM_BUILD_PROFILE=container_generic" \
|
||||||
--build-arg "KANIDM_FEATURES=" \
|
--build-arg "KANIDM_FEATURES=" \
|
||||||
|
@ -33,6 +36,7 @@ buildx/kanidm_tools:
|
||||||
--pull --push --platform $(IMAGE_ARCH) \
|
--pull --push --platform $(IMAGE_ARCH) \
|
||||||
-f tools/Dockerfile \
|
-f tools/Dockerfile \
|
||||||
-t $(IMAGE_BASE)/tools:$(IMAGE_VERSION) \
|
-t $(IMAGE_BASE)/tools:$(IMAGE_VERSION) \
|
||||||
|
-t $(IMAGE_BASE)/tools:$(IMAGE_EXT_VERSION) \
|
||||||
--progress $(BUILDKIT_PROGRESS) \
|
--progress $(BUILDKIT_PROGRESS) \
|
||||||
--build-arg "KANIDM_BUILD_PROFILE=container_generic" \
|
--build-arg "KANIDM_BUILD_PROFILE=container_generic" \
|
||||||
--build-arg "KANIDM_FEATURES=" \
|
--build-arg "KANIDM_FEATURES=" \
|
||||||
|
@ -45,7 +49,8 @@ buildx/radiusd:
|
||||||
--pull --push --platform $(IMAGE_ARCH) \
|
--pull --push --platform $(IMAGE_ARCH) \
|
||||||
-f rlm_python/Dockerfile \
|
-f rlm_python/Dockerfile \
|
||||||
--progress $(BUILDKIT_PROGRESS) \
|
--progress $(BUILDKIT_PROGRESS) \
|
||||||
-t $(IMAGE_BASE)/radius:$(IMAGE_VERSION) .
|
-t $(IMAGE_BASE)/radius:$(IMAGE_VERSION) \
|
||||||
|
-t $(IMAGE_BASE)/radius:$(IMAGE_EXT_VERSION) .
|
||||||
|
|
||||||
.PHONY: buildx
|
.PHONY: buildx
|
||||||
buildx: buildx/kanidmd buildx/kanidm_tools buildx/radiusd
|
buildx: buildx/kanidmd buildx/kanidm_tools buildx/radiusd
|
||||||
|
@ -53,7 +58,8 @@ buildx: buildx/kanidmd buildx/kanidm_tools buildx/radiusd
|
||||||
.PHONY: build/kanidmd
|
.PHONY: build/kanidmd
|
||||||
build/kanidmd: ## Build the kanidmd docker image locally
|
build/kanidmd: ## Build the kanidmd docker image locally
|
||||||
build/kanidmd:
|
build/kanidmd:
|
||||||
@$(CONTAINER_TOOL) build $(CONTAINER_TOOL_ARGS) -f server/Dockerfile -t $(IMAGE_BASE)/server:$(IMAGE_VERSION) \
|
@$(CONTAINER_TOOL) build $(CONTAINER_TOOL_ARGS) -f server/Dockerfile \
|
||||||
|
-t $(IMAGE_BASE)/server:$(IMAGE_VERSION) \
|
||||||
--build-arg "KANIDM_BUILD_PROFILE=container_generic" \
|
--build-arg "KANIDM_BUILD_PROFILE=container_generic" \
|
||||||
--build-arg "KANIDM_FEATURES=" \
|
--build-arg "KANIDM_FEATURES=" \
|
||||||
$(CONTAINER_BUILD_ARGS) .
|
$(CONTAINER_BUILD_ARGS) .
|
||||||
|
|
|
@ -27,6 +27,7 @@ cargo install cargo-outdated
|
||||||
|
|
||||||
- [ ] update version in ./server/web\_ui/Cargo.toml
|
- [ ] update version in ./server/web\_ui/Cargo.toml
|
||||||
- [ ] update version in ./Cargo.toml
|
- [ ] update version in ./Cargo.toml
|
||||||
|
- [ ] update version in ./Makefile
|
||||||
- [ ] cargo test
|
- [ ] cargo test
|
||||||
- [ ] build wasm components with release profile
|
- [ ] build wasm components with release profile
|
||||||
- [ ] Update `RELEASE_NOTES.md`
|
- [ ] Update `RELEASE_NOTES.md`
|
||||||
|
|
Loading…
Reference in a new issue