Skip to content

Commit

Permalink
Cleanup phase still failed sometimes after previous fix with differen…
Browse files Browse the repository at this point in the history
…t message, now covering both. (#23)
  • Loading branch information
shaharpx authored Aug 29, 2024
1 parent 3e7bba4 commit 2bb4abe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.10](https://github.com/PerimeterX/envite/compare/v0.0.9...v0.0.10)

### Fixed

- Cleanup phase still failed sometimes after previous fix with different message, now covering both.

## [0.0.9](https://github.com/PerimeterX/envite/compare/v0.0.8...v0.0.9)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion docker/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (c *Component) Cleanup(ctx context.Context) error {

func (c *Component) removeImage(ctx context.Context) error {
_, err := c.cli.ImageRemove(ctx, c.imageCloneTag, image.RemoveOptions{})
if err != nil && !strings.Contains(err.Error(), "reference does not exist") {
if err != nil && !strings.Contains(err.Error(), "reference does not exist") && !strings.Contains(err.Error(), "No such image") {
return err
}

Expand Down

0 comments on commit 2bb4abe

Please sign in to comment.