woodpecker-docker-buildx/plugin
miniduikboot a187589df9 add cache_to option and remove manual image pull (#46)
Port from https://github.com/thegeeklab/drone-docker-buildx/pull/124

Basically docker cache got a bit fancier and now includes a cache manifest. Manually pulling these containers isn't sufficient enough, so remove the manual pull.

cache_to allows you to push your cache including a manifest to a remote location: https://docs.docker.com/engine/reference/commandline/buildx_build/#cache-to

Unfortunately this option isn't quite that useful: to fully use this feature, you need to supply your arguments in CSV format, which woodpecker unhelpfully splits into multiple completely separate arguments, breaking it :(

With a further change to fix that issue I managed to turn a multistage rust build from ~3 minutes down to 20 seconds.

Co-authored-by: miniduikboot <mini@duikbo.at>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/46
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: miniduikboot <miniduikboot@noreply.codeberg.org>
Co-committed-by: miniduikboot <miniduikboot@noreply.codeberg.org>
2022-11-23 15:55:12 +00:00
..
coredns.go Add internal DNS server if no custom DNS is set (#45) 2022-11-23 14:01:45 +00:00
daemon.go Automatically generate buildkit config with registry CA file (#17) 2022-09-27 22:33:05 +02:00
docker.go add cache_to option and remove manual image pull (#46) 2022-11-23 15:55:12 +00:00
impl_test.go Add configurable tag for use with auto_tag (#36) 2022-11-05 03:25:44 +01:00
impl.go add cache_to option and remove manual image pull (#46) 2022-11-23 15:55:12 +00:00
labels.go Implement option to add image labels and generate automatic labels (#19) 2022-09-28 02:16:57 +02:00
login.go Add support for multible registrys (#23) 2022-10-08 16:02:02 +02:00
plugin.go Fix func to determine default login (#29) 2022-10-11 11:38:36 +02:00
tags_test.go Add configurable tag for use with auto_tag (#36) 2022-11-05 03:25:44 +01:00
tags.go Document auto_tag behaviour more explicite (#37) 2022-11-06 14:29:57 +01:00