Base Go Version and Docker image tag on Git commit sha #21
Labels
area/build-tools
Development tooling. I.e. pretty much everything in the `build` directory.
kind/design
Proposal discussing new features / fixes and how they should be implemented
Milestone
Depends on:
Version
into a single constant #2gcloud docker --authorize
make target and push targets #5Make the Version Makefile variable the first the first a number value (0.1-) + the first 7(?) characters of the Git hash for the deployed version.
This should be passed into the Go compilation as
ldflags -X
to overwrite it' value.This should also be used as the tag to push up to the docker registry, so there is always a specific version being run.
The
build/Makefile
will need aninstall
target to that will need some kind of templating to push this through to the install.yaml andkubectl apply
-sed
may be a simple and easy first step.Optional: Make the imagePullPolicy dependent on an extra argument? just as
make install DEV=true
or something similar? The developer experience should be considered here. Not sure the best approach for that.The text was updated successfully, but these errors were encountered: