First tag the latest commit on github with a new version;
To list the latest existing tag:
git describe --abbrev=0 --tags
To tag the latest commit:
git tag -e -a <version> HEAD
git push
git push origin --tags
eg.
git tag -e -a 1.2.0 HEAD
git push
git push origin --tags
Once the image is built for the new tag:
kubectl -n flaski get pods
then finally:
kubectl -n flaski rollout restart deployment/server3