Closed freynca closed 7 years ago
ok, so i'm trying to map this to a workflow that other people on the team can follow.
Assuming no PR builds for now
most important for normal dev work is to be able to consume the right build containers (like the invoker base image) from the HEAD of master when doing work e.g. say on a new sample function. If an extra step is required to lookup the most recent (pushed to github) commit-triggered CI version tag, then we should make that process easy enough, so that it can be automated and included in some form in all the manual sk8s build processes. (like the main mvn package and each sample function).
it should be also easy to figure out which version to use for ANY git commit, and helm-deploy everything from that CI build (can we use the GitHub commit status for that?)
@markfisher mentioned that we also need a way to use locally built images, which is what happens today by default, but then those tags also collide with images on dockerhub when the local builds are missing, which results in stale images appearing mysteriously in minikube locally (breaking the demo 😡 )
Hi @freynca, if you could provide a summary of how you're planning to do this, and how minikube sk8s developers will consume images built by Ci, that would be very helpful. I can't really infer this from the diagram you pointed to.
@jldec Updated diagram once more, to add sk8s
PR step, and clarify versions and tagging.
The development process is as follows:
sk8s
PR is submitted
0.0.0-pr#
(example: 0.0.0-pr104
, https://hub.docker.com/r/sk8s/java-function-invoker/tags/)sk8s
are run as follows
master
on either the sk8s
repoa.b.c
)sk8s
codebase and increments the semver (example: https://github.com/markfisher/sk8s/tree/0.0.4)faas-cli
codebase is tagged using a dedicated semversk8s
: git tag --list
, git describe --tags
Follow-up to #11
The
sk8s-version
resource (https://ci.faas.to.cf-app.com/teams/pfs/pipelines/sk8s/resources/sk8s-version) is currently manually controlled and can be bumped using theversion-bump-patch
andversion-bump-final
jobs.The next step in
sk8s
build and CI is to automatically bump the version on successful builds.See https://github.com/pivotal-cf/pfs-ci/blob/master/faas_ci_process.png
@jldec Diagram above with updated flow