This uses shallow clones depth=1 in the builder stage for branch and tag based builds, which makes them faster, leads to less congested airwaves, and about 600mb smaller builder images on disk.
commit based builds are depth=2000 which is i think the maximum of what we can sensibly expect to work and still better than having 14000 commits and counting in the builder. If git in the future supports cloning via commitish we can further simplify the logic.
!! Do not merge until #59 is merged !!
This uses shallow clones
depth=1
in the builder stage forbranch
andtag
based builds, which makes them faster, leads to less congested airwaves, and about 600mb smaller builder images on disk.commit
based builds aredepth=2000
which is i think the maximum of what we can sensibly expect to work and still better than having 14000 commits and counting in the builder. If git in the future supports cloning via commitish we can further simplify the logic.