From 81a8a0c856d8b0b967aa279576e709ad91a70ad3 Mon Sep 17 00:00:00 2001 From: Firstyear Date: Thu, 25 May 2023 13:42:18 +1000 Subject: [PATCH] Add version tag to makefile images (#1654) --- Cargo.toml | 2 +- Makefile | 10 ++++++++-- project_docs/RELEASE_CHECKLIST.md | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 61b709c28..a48e35952 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ members = [ ] [workspace.package] -version = "1.1.0-beta.13" +version = "1.1.0-beta.13-dev" authors = [ "William Brown ", "James Hodgkinson ", diff --git a/Makefile b/Makefile index 53269ecd1..545e72340 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ IMAGE_BASE ?= kanidm IMAGE_VERSION ?= devel +IMAGE_EXT_VERSION ?= 1.1.0-beta.13-dev CONTAINER_TOOL_ARGS ?= IMAGE_ARCH ?= "linux/amd64,linux/arm64" CONTAINER_BUILD_ARGS ?= @@ -17,10 +18,12 @@ help: .PHONY: buildx/kanidmd buildx/kanidmd: ## Build multiarch kanidm server images and push to docker hub buildx/kanidmd: + @echo $(IMAGE_EXT_VERSION) @$(CONTAINER_TOOL) buildx build $(CONTAINER_TOOL_ARGS) \ --pull --push --platform $(IMAGE_ARCH) \ -f server/Dockerfile \ -t $(IMAGE_BASE)/server:$(IMAGE_VERSION) \ + -t $(IMAGE_BASE)/server:$(IMAGE_EXT_VERSION) \ --progress $(BUILDKIT_PROGRESS) \ --build-arg "KANIDM_BUILD_PROFILE=container_generic" \ --build-arg "KANIDM_FEATURES=" \ @@ -33,6 +36,7 @@ buildx/kanidm_tools: --pull --push --platform $(IMAGE_ARCH) \ -f tools/Dockerfile \ -t $(IMAGE_BASE)/tools:$(IMAGE_VERSION) \ + -t $(IMAGE_BASE)/tools:$(IMAGE_EXT_VERSION) \ --progress $(BUILDKIT_PROGRESS) \ --build-arg "KANIDM_BUILD_PROFILE=container_generic" \ --build-arg "KANIDM_FEATURES=" \ @@ -45,7 +49,8 @@ buildx/radiusd: --pull --push --platform $(IMAGE_ARCH) \ -f rlm_python/Dockerfile \ --progress $(BUILDKIT_PROGRESS) \ - -t $(IMAGE_BASE)/radius:$(IMAGE_VERSION) . + -t $(IMAGE_BASE)/radius:$(IMAGE_VERSION) \ + -t $(IMAGE_BASE)/radius:$(IMAGE_EXT_VERSION) . .PHONY: buildx buildx: buildx/kanidmd buildx/kanidm_tools buildx/radiusd @@ -53,7 +58,8 @@ buildx: buildx/kanidmd buildx/kanidm_tools buildx/radiusd .PHONY: build/kanidmd build/kanidmd: ## Build the kanidmd docker image locally 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_FEATURES=" \ $(CONTAINER_BUILD_ARGS) . diff --git a/project_docs/RELEASE_CHECKLIST.md b/project_docs/RELEASE_CHECKLIST.md index 3c11eb81e..aac72166a 100644 --- a/project_docs/RELEASE_CHECKLIST.md +++ b/project_docs/RELEASE_CHECKLIST.md @@ -27,6 +27,7 @@ cargo install cargo-outdated - [ ] update version in ./server/web\_ui/Cargo.toml - [ ] update version in ./Cargo.toml +- [ ] update version in ./Makefile - [ ] cargo test - [ ] build wasm components with release profile - [ ] Update `RELEASE_NOTES.md`