wooden-thailand-8386
08/20/2020, 6:49 PMpants
so I was wondering what’s the “recommended” way of doing a build docker image process.
Right now I have my CI set to lint
and test
using the --changed-since
flag and it works great. Now I’m adding the bundle
step and that will generate the .tar.gz
files that will then be added to a docker image.
I’m wondering how I can “know” what dockerfiles should be built based on the projects that were actually bundled during the bundle
step, I can probably do a bash script that gets the output from dist
folder but is that what I should be doing or pants have some cool feature to trigger commands/scripts that I’m missing?plain-river-51682
08/20/2020, 10:45 PMplain-river-51682
08/20/2020, 10:45 PMwooden-thailand-8386
08/20/2020, 10:48 PMwooden-thailand-8386
08/20/2020, 10:48 PMhundreds-father-404
08/21/2020, 12:17 AMfiles()
target instead. They’re really similar, except a files()
target won’t be included in things like binary
and it won’t have its “source root” stripped. It’s designed for arbitrary loose files.
Also welcome! What languages are you using with Pants? And what version are you on? Let us know if you have any feedback or we can help with anything!wooden-thailand-8386
08/21/2020, 1:25 PM