Merge pull request #1667 from fidencio/wip/automatically-bump-kata-deploy-image-version

release: automatically bump the version of the kata-deploy images
This commit is contained in:
Peng Tao 2021-04-09 16:06:07 +08:00 committed by GitHub
commit efd5d6f1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -18,7 +18,7 @@ spec:
katacontainers.io/kata-runtime: cleanup
containers:
- name: kube-kata-cleanup
image: katadocker/kata-deploy
image: katadocker/kata-deploy:2.1.0-alpha1
imagePullPolicy: Always
command: [ "bash", "-c", "/opt/kata-artifacts/scripts/kata-deploy.sh reset" ]
env:

View File

@ -110,6 +110,13 @@ bump_repo() {
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"
notes_file=notes.md
cat <<EOT >"${notes_file}"
@ -128,6 +135,8 @@ EOT
info "OK"
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
info "Creating commit with new changes"
commit_msg="$(generate_commit $new_version $current_version)"