.
This commit is contained in:
parent
5ee2f74699
commit
5d5728c88c
|
@ -2,8 +2,8 @@ n=0
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
docker pull $2 \
|
docker pull $2 \
|
||||||
&& docker tag $2 $1$2 \
|
&& docker tag $2 $1$3 \
|
||||||
&& docker push $1$2 && break # substitute your command here
|
&& docker push $1$3 && break # substitute your command here
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
if [ $n -ge 10 ]; then
|
if [ $n -ge 10 ]; then
|
||||||
echo "initialise failed"
|
echo "initialise failed"
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
sh $(dirname $0)/login.sh $1 "$2" \
|
sh $(dirname $0)/login.sh $1 "$2" \
|
||||||
&& sh $(dirname $0)/initialise-image.sh $1 portainer/portainer-ce:2.0.0-alpine@sha256:5555e1538aa4bc56d7ae85787278e4b972573b205e2ae260717ef17985e0e24f \
|
&& sh $(dirname $0)/initialise-image.sh $1 \
|
||||||
&& sh $(dirname $0)/initialise-image.sh $1 portainer/agent:2.0.0@sha256:8f994457bc32480bff351f0b1d371557238e69f5902037addfe76fa7bd930b9d \
|
portainer/portainer-ce:2.0.0-alpine@sha256:5555e1538aa4bc56d7ae85787278e4b972573b205e2ae260717ef17985e0e24f \
|
||||||
|
portainer/portainer-ce:2.0.0-alpine
|
||||||
|
&& sh $(dirname $0)/initialise-image.sh $1 \
|
||||||
|
portainer/agent:2.0.0@sha256:8f994457bc32480bff351f0b1d371557238e69f5902037addfe76fa7bd930b9d \
|
||||||
|
portainer/agent:2.0.0
|
||||||
|
|
Loading…
Reference in New Issue