drone.star¶
Move step and plugin images in Drone and Woodpecker CI pipelines.
Both tools write steps with an image: key, and plugins are images too,
so one helper covers moving a build image and upgrading a plugin.
| Function | What it does |
|---|---|
pipelines |
Lists the repo's Drone and Woodpecker pipeline files. |
bump_image |
Moves a step or plugin image from one tag to another, keeping variants. |
pipelines¶
Lists the repo's Drone and Woodpecker pipeline files.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
Returns: The sorted paths of .drone.yml, .woodpecker.yml and the files under .woodpecker.
Example
bump_image¶
Moves a step or plugin image from one tag to another, keeping variants.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
image |
The image, such as golang or plugins/docker. |
from_tag |
The tag to replace. |
to_tag |
The tag to put in its place. |
Returns: The list of paths that changed.
Example
bump_image(repo, "golang", "1.22", "1.23")
bump_image(repo, "plugins/docker", "20", "21")
# returns [".drone.yml"]
Used in: drone-golang