update DockerHub info

create a script that automatically updates the DockerHub project pages
This commit is contained in:
zimbatm 2019-02-13 18:30:15 +01:00
parent 9baba96f89
commit e97a236529
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
6 changed files with 95 additions and 18 deletions

View file

@ -2,12 +2,18 @@
#
# A simplified docker login approach that doesn't depends on the docker binary
#
# Usage: ./docker-login <registry> <username> <password>
# Usage: ./docker-login <username> <password> [registry]
set -euo pipefail
registry=$1
username=$2
password=$3
username=$1
password=$2
registry=${3:-docker.io}
# Encode some funky docker heuristic
if [[ $registry = *docker.io ]]; then
# use the v2 registry so that skopeo can do noop layer copies
registry=https://index.docker.io/v2/
fi
mkdir ~/.docker