Files
kubesphere/install/scripts/docker_push
2020-11-18 22:35:08 +08:00

8 lines
214 B
Bash

#!/bin/bash
cat ~/.docker/config.json | grep index.docker.io
if [[ $? != 0 ]]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
fi
docker push kubespheredev/ks-apiserver:latest