We could look at copying [this from Spring Cloud](https://github.com/spring-cloud/spring-cloud-build/pull/68)