mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-30 08:52:39 +00:00 
			
		
		
		
	release: automatically bump the version of the kata-deploy images
Let's teach `update-repository-version.sh` to automatically bump the version of the kata-deploy images to be used within that release, when running against the `kata-containers` repo. Fixes: #1665 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
		| @@ -110,6 +110,13 @@ bump_repo() { | |||||||
| 		fi | 		fi | ||||||
| 	fi | 	fi | ||||||
|  |  | ||||||
|  | 	if [ "${repo}" == "kata-containers" ]; then | ||||||
|  | 		info "Updating kata-deploy / kata-cleanup image tags" | ||||||
|  | 		sed -i "s#katadocker/kata-deploy:${current_version}#katadocker/kata-deploy:${new_version}#g" tools/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml | ||||||
|  | 		sed -i "s#katadocker/kata-deploy:${current_version}#katadocker/kata-deploy:${new_version}#g" tools/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml | ||||||
|  | 		git diff | ||||||
|  | 	fi | ||||||
|  |  | ||||||
| 	info "Creating PR message" | 	info "Creating PR message" | ||||||
| 	notes_file=notes.md | 	notes_file=notes.md | ||||||
| 	cat <<EOT >"${notes_file}" | 	cat <<EOT >"${notes_file}" | ||||||
| @@ -128,6 +135,8 @@ EOT | |||||||
| 		info "OK" | 		info "OK" | ||||||
| 	fi | 	fi | ||||||
|  |  | ||||||
|  | 	git add tools/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml | ||||||
|  | 	git add tools/packaging/kata-deploy/kata-cleanup/base/kata-cleanup.yaml | ||||||
| 	git add VERSION | 	git add VERSION | ||||||
| 	info "Creating commit with new changes" | 	info "Creating commit with new changes" | ||||||
| 	commit_msg="$(generate_commit $new_version $current_version)" | 	commit_msg="$(generate_commit $new_version $current_version)" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user