mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-18 01:13:56 +00:00
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:
commit
efd5d6f1fe
@ -18,7 +18,7 @@ spec:
|
|||||||
katacontainers.io/kata-runtime: cleanup
|
katacontainers.io/kata-runtime: cleanup
|
||||||
containers:
|
containers:
|
||||||
- name: kube-kata-cleanup
|
- name: kube-kata-cleanup
|
||||||
image: katadocker/kata-deploy
|
image: katadocker/kata-deploy:2.1.0-alpha1
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: [ "bash", "-c", "/opt/kata-artifacts/scripts/kata-deploy.sh reset" ]
|
command: [ "bash", "-c", "/opt/kata-artifacts/scripts/kata-deploy.sh reset" ]
|
||||||
env:
|
env:
|
||||||
|
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user