Split 'pull' option docs from 'image' docs (#5161)

This commit is contained in:
Oto Šťáva
2025-05-12 08:15:36 +02:00
committed by GitHub
parent fa3525c5f8
commit aac914cfae
2 changed files with 14 additions and 6 deletions

View File

@@ -122,7 +122,13 @@ image: index.docker.io/library/golang
image: index.docker.io/library/golang:1.7
```
Woodpecker does not automatically upgrade container images. Example configuration to always pull the latest image when updates are available:
Learn more how you can use images from [different registries](./41-registries.md).
### `pull`
By default, Woodpecker does not automatically upgrade container images and only pulls them when they are not already present.
To always pull the latest image when updates are available, use the `pull` option:
```diff
steps:
@@ -131,8 +137,6 @@ Woodpecker does not automatically upgrade container images. Example configuratio
+ pull: true
```
Learn more how you can use images from [different registries](./41-registries.md).
### `commands`
Commands of every step are executed serially as if you would enter them into your local shell.