Push Docker image via CLI
It would be great if we could push the Docker image via CLI. Hence we could use tokens instead of using username/password. Is anything like this on the roadmap?
Hi @jaulz -- apologies for the delay here. This is a great request and I believe its somewhere on the roadmap. Just to be clear, you're looking for something like
export REPLICATED_APP=xxx
export REPLICATED_API_TOKEN=xxx
replicated docker -- push registry.replicated.com/myapp/myimage:1.1.0
where the app/token would be used to authenticate? Or would it be sufficient to just have something like a placeholder username for usage with the docker CLI?
echo $REPLICATED_API_TOKEN | docker login --username=placeholder --password-stdin
docker push registry.replicated.com/myapp/myimage:1.1.0
@dexhorthy actually the first one would be the desired behaviour so we don't need to maintain username/password in our pipeline but instead can use a simple token that can only be used for deployment.