This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 5991a3c2 Add the docker image upload and publish process for the 
controller release (#270)
5991a3c2 is described below

commit 5991a3c22b91086a5111e5f744ddd7dae01f4721
Author: hulk <[email protected]>
AuthorDate: Tue Jan 28 20:49:38 2025 +0800

    Add the docker image upload and publish process for the controller release 
(#270)
---
 community/create-a-kvrocks-controller-release.md | 33 ++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/community/create-a-kvrocks-controller-release.md 
b/community/create-a-kvrocks-controller-release.md
index 48c46096..8eceb61c 100644
--- a/community/create-a-kvrocks-controller-release.md
+++ b/community/create-a-kvrocks-controller-release.md
@@ -57,6 +57,24 @@ svn status # check svn status
 svn commit -m "Prepare for ${release_version}"     # commit to SVN remote 
server
 ```
 
+## Build and push Docker images
+
+:::info
+
+Docker and Docker Buildx is required for this step. Docker Buildx should be 
bundled with Docker Desktop. If you don't use Docker Desktop, please follow the 
[installation guide](https://docs.docker.com/build/install-buildx/) to install 
it.
+
+:::
+
+1. `docker login` to your own DockerHub account.
+2. Build and push docker images to your personal repository on DockerHub:
+3. MORE BUILD ARGS can be adjusted according to the performance of your 
computer
+
+```shell
+docker buildx create --name ${your_builder_name} --use --driver-opt 
network=host
+docker buildx inspect --bootstrap
+docker buildx build --platform linux/amd64,linux/arm64 --tag 
${your_dockerhub_username}/kvrocks-controller:${release_version} --tag 
${your_dockerhub_username}/kvrocks-controller:latest . --output "type=registry"
+```
+
 ## Draft release note
 
 [Draft a new release 
note](https://github.com/apache/kvrocks-controller/releases/new).
@@ -158,6 +176,21 @@ Thanks
 svn mv 
https://dist.apache.org/repos/dist/dev/kvrocks/kvrocks-controller/${release_version}
 
https://dist.apache.org/repos/dist/release/kvrocks/kvrocks-controller/${release_version}
 -m "Release ${release_version}"
 ```
 
+### Publish Docker images
+
+Copy the approved candidate docker images from your personal account to apache 
org:
+
+```shell
+docker buildx imagetools create -t 
apache/kvrocks-controller:${release_version} 
${your_dockerhub_username}/kvrocks-controller:${release_version}
+docker buildx imagetools create -t apache/kvrocks-controller:latest 
${your_dockerhub_username}/kvrocks-controller:latest
+```
+
+:::caution
+
+If you don't have the permission, you can ask someone with access to apache 
org to do that.
+
+:::
+
 ### Publish release note
 
 Edit the title of the draft release note and use the new ${release_version} 
tag, which github will create automatically.

Reply via email to