You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/notes/2.32.x.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,12 @@ The option `[docker].push_on_package` can be used to prevent Docker images from
81
81
82
82
Running `pants publish` on a `docker_image` target with `skip_push=True` will no longer package the `docker_image`.
83
83
84
+
The option `[docker].build_extra_options` or/and the `build_extra_options` field of `docker_image` targets can now be used to pass extra options to docker build or podman build. Make sure that the options are understood by the tool.
85
+
For example, you can now set `build_extra_options=["--no-cache"]` to do not use existing cached images for the container build.
86
+
87
+
Fields that are already present in the docker image target are surpressed by the extra options when they conflict.
88
+
For example, if you set `build_extra_options=["--pull"]`, the `pull` field of the docker image target will be ignored.
89
+
84
90
#### Helm
85
91
86
92
When `pants publish` is invoked, Pants will now skip packaging for `helm_chart` targets if either `skip_push=True` or the target has no registries.
0 commit comments