I'm attempting to push a Docker image to a private repository on Docker Hub without manual intervention, as it's integrated with Jenkins. Despite trying Docker commands and sending cURL requests to the Docker API, I haven't been successful.
The goal is to automate the image push to the private repository without relying on manual creation through the console. Any insights or guidance on achieving this within a Jenkins pipeline or through automated means would be greatly appreciated.
Here are the approaches I've attempted so far:
Utilizing Docker commands. Sending cURL requests to the Docker API. However, these methods haven't yielded the desired outcome. Any suggestions or code snippets demonstrating the correct procedure would be immensely helpful. Thank you!