Is something like this possible? I want to dynamically build an image for the CI pipeline to use but I also wanna scope it to the given commit hash. I could have a cleanup cron job on the worker server.
Nice. The solution suggested on github however suffers from a race condition where two different commits can change the build definition. I wanted to scope the image with image: myimage:${DRONE_COMMIT} for this reason.
Will the native build syntax leverage docker cache layer?
If you run drone exec --help you can see a list of all variables that can be provided as either command line flags or environment variables. You have a number of different options.