hashicorp / packer-plugin-docker

Packer plugin for Docker Builder
https://www.packer.io/docs/builders/docker
Mozilla Public License 2.0
31 stars 25 forks source link

Replace error on digest errors after docker push with warning message… #89

Closed JenGoldstrich closed 2 years ago

JenGoldstrich commented 2 years ago

This PR replaces an error text when docker digest images are unavailable, this wouldn't cause the plugin to fail, just to display an error message, now it just warns the user instead of erroring.

Added a test called TestPostProcessor_PostProcess_digestWarning which mocks out a digest failure and validates that the new warning text is shown.

Its worth noting that @nywilken and I struggled to reproduce this error message during development, but Wilken has run into it before.

Closes https://github.com/hashicorp/packer-plugin-docker/issues/77