Closed mamutmk5 closed 10 months ago
It seems linked to https://github.com/docker/build-push-action/pull/872 where your docker config in ~/.docker/config.json
is not a valid json.
You altered the content of the config in test image exists
step and more precisely:
echo '{"experimental": "enabled"}' >> ~/.docker/config.json
You append {"experimental": "enabled"}
to it which would break the configuration if file already exists and has an existing configuration.
Also experimental
is not supported anymore in the cli configuration iirc (cc @thaJeztah) so you can just remove this line in your workflow imo.
About the error message, I will make some changes to make it clear it's an issue parsing the configuration and also warn if there is an issue instead.
Thank you it's very interesting to read, we will fix it at our side and remove {"experimental": "enabled"}
in this step.
But i wonder why it's work with the version 4.1.1 of this action and with version 4.2.0 not more.
But i wonder why it's work with the version 4.1.1 of this action and with version 4.2.0 not more.
With https://github.com/docker/build-push-action/pull/872 we now display the proxy configuration which is read from ~/.docker/config.json
. I will make some changes so it will warn instead of failing.
Thank you :)
Should be fixed in both v4.2.1
and v4
with a warning message if config is malformed:
Contributing guidelines
I've found a bug, and:
Description
After the version 4.2.0 came out our pipeliens fail if we use docker/build-push-action@v4 so we had to pin it to version 4.1.1. There is some issue with interprate the jsons given by the docker/metadata-action@v4
Expected behaviour
The action works with the medata generated by docker/metadata-action@v4
Actual behaviour
If we use it with the we get
Run docker/build-push-action@v4 GitHub Actions runtime token ACs Docker info Error: Unexpected token { in JSON at position 253
Repository URL
https://github.com/hpi-schul-cloud/schulcloud-server
Workflow run URL
https://github.com/hpi-schul-cloud/schulcloud-server/actions/runs/6120036347/job/16611111071
YAML workflow
Workflow logs
log.txt
BuildKit logs
No response
Additional info
No response