1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

fix(deps): update golang-packages to v28.2.1+incompatible (#5217)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
This commit is contained in:
renovate[bot]
2025-06-06 07:20:03 +02:00
committed by GitHub
parent ab3bd8367e
commit 71f24f5d44
3 changed files with 14 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ import (
"path/filepath"
"strings"
"github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/api/types/network"
@@ -204,7 +205,7 @@ func (e *docker) StartStep(ctx context.Context, step *backend.Step, taskUUID str
hostConfig.Binds = utils.DeduplicateStrings(append(hostConfig.Binds, e.config.volumes...))
_, err = e.client.ContainerCreate(ctx, config, hostConfig, nil, nil, containerName)
if client.IsErrNotFound(err) {
if errdefs.IsNotFound(err) {
// automatically pull and try to re-create the image if the
// failure is caused because the image does not exist.
responseBody, pErr := e.client.ImagePull(ctx, config.Image, pullOpts)