<p>I am trying to be able to deploy an image from a space repository to AWS EKS. So far I managed to successfully save my docker image to Space. But I stuck at finding a way to upload my image to my cluster.</p>
<p>So far I've created the following to save my docker image to the registy.
Does someone know how I could push this towards AWS EKS? Thank you in advance for taking the time help me!</p>
<pre class="lang-kotlin prettyprint-override"><code>job(&quot;Build Image and save to registry&quot;) {
    startOn {
        gitPush {
            branchFilter {
                +&quot;refs/heads/main&quot;
            }
        }
    }
    
    docker {
        resources {
            cpu = 512
            memory = 1024
        }

        build {
            context = &quot;.&quot;
            file = &quot;Dockerfile&quot;
        }
    
        push(&quot;&lt;my-private&gt;.registry.jetbrains.space/p/repo/repo/image:latest&quot;)
    }
}
</code></pre>

<p>It is not currently possible out-of-the-box to push to private registries via the <code>docker</code> top-level DSL. The feature will be added soon, as most of the puzzle pieces have been put in place now. You can track <a href="https://youtrack.jetbrains.com/issue/SPACE-9234/Authentication-to-private-registries" rel="nofollow noreferrer">https://youtrack.jetbrains.com/issue/SPACE-9234/Authentication-to-private-registries</a> for more info about this.</p>
<p>In the meantime, some workarounds were presented in the YouTrack issue. Please check them out.</p>
