.
This commit is contained in:
parent
d8d72a3ad8
commit
0231a81878
|
@ -11,7 +11,7 @@ local config = {
|
||||||
};
|
};
|
||||||
[
|
[
|
||||||
register,
|
register,
|
||||||
registry(config)() {
|
registry(config) {
|
||||||
trigger +: {
|
trigger +: {
|
||||||
event +: [
|
event +: [
|
||||||
'promote',
|
'promote',
|
||||||
|
|
|
@ -6,6 +6,6 @@ do
|
||||||
&& docker push $1$2 && break # substitute your command here
|
&& docker push $1$2 && break # substitute your command here
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
echo "retrying..$n"
|
echo "retrying..$n"
|
||||||
sleep 15
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
n=0
|
sh $(dirname $0)/login.sh $1 "$2" \
|
||||||
while :
|
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone:1.9.0 \
|
||||||
do
|
|
||||||
docker login $1 --username client --password $2 \
|
|
||||||
&& break # substitute your command here
|
|
||||||
n=$((n+1))
|
|
||||||
echo "retrying login..$n"
|
|
||||||
sleep 15
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
docker login $1 --username client --password $2
|
|
||||||
|
|
||||||
sh $(dirname $0)/initialise-image.sh $1 drone/drone:1.9.0 \
|
|
||||||
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone-runner-docker:1.5.0
|
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone-runner-docker:1.5.0
|
|
@ -0,0 +1,12 @@
|
||||||
|
n=0
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
docker login $1 --username client --password $2 \
|
||||||
|
&& break # substitute your command here
|
||||||
|
n=$((n+1))
|
||||||
|
echo "retrying login..$n"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
sh $(dirname $0)/initialise-image.sh $1 drone/drone:1.9.0 \
|
||||||
|
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone-runner-docker:1.5.0
|
Loading…
Reference in New Issue