.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-09-24 13:36:23 +01:00
parent d8d72a3ad8
commit 0231a81878
4 changed files with 16 additions and 16 deletions

View File

@ -11,7 +11,7 @@ local config = {
};
[
register,
registry(config)() {
registry(config) {
trigger +: {
event +: [
'promote',

View File

@ -6,6 +6,6 @@ do
&& docker push $1$2 && break # substitute your command here
n=$((n+1))
echo "retrying..$n"
sleep 15
sleep 1
done

View File

@ -1,15 +1,3 @@
n=0
while :
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)/login.sh $1 "$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

12
.drone/lib/login.sh Normal file
View File

@ -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