desec-stack
desec-stack copied to clipboard
Rethink Deployment (formerly: Add versioning to Docker images)
Currently, it is hard to determine the git base commit from inside our Docker builds. To change this, a few parameters need to be passed at build time. Ideas:
- https://blog.scottlowe.org/2017/11/08/how-tag-docker-images-git-commit-information/
- http://container-solutions.com/tagging-docker-images-the-right-way/
https://docs.docker.com/engine/reference/builder/#arg especially "Using ARG variables", in combination with the LABEL command