.
This commit is contained in:
commit
0b7638144a
|
@ -1,4 +1,5 @@
|
||||||
docker stack rm drone
|
export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/
|
||||||
echo 'sleeping...zzz'
|
docker stack rm drone \
|
||||||
sleep 60
|
&& echo 'sleeping...zzz' \
|
||||||
docker stack deploy -c docker-compose.yml drone
|
&& sleep 60 \
|
||||||
|
&& docker stack deploy -c docker-compose.yml drone
|
||||||
|
|
|
@ -15,10 +15,10 @@ local config = {
|
||||||
config {
|
config {
|
||||||
script: 'sh .drone/scripts/initialise-images.sh',
|
script: 'sh .drone/scripts/initialise-images.sh',
|
||||||
secrets: [
|
secrets: [
|
||||||
'REGISTRY_PASSWORD',
|
|
||||||
'REGISTRY_DOMAIN',
|
'REGISTRY_DOMAIN',
|
||||||
'REGISTRY_PORT',
|
'REGISTRY_PORT',
|
||||||
]
|
'REGISTRY_PASSWORD'
|
||||||
|
],
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
trigger +: {
|
trigger +: {
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"build": "drone jsonnet --source drone-home.jsonnet --target drone-home.yml --stream"
|
"build": "drone jsonnet --source drone-home.jsonnet --target drone-home.yml --stream"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sigyl/jsonnet-drone": "^0.3.0"
|
"@sigyl/jsonnet-drone": "^0.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,12 +5,12 @@ do
|
||||||
&& docker tag $2 $1$2 \
|
&& docker tag $2 $1$2 \
|
||||||
&& docker push $1$2 && break # substitute your command here
|
&& docker push $1$2 && break # substitute your command here
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
if [ $n -ge 2 ]; then
|
if [ $n -ge 10 ]; then
|
||||||
echo "initialise failed"
|
echo "initialise failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "retrying..$n"
|
echo "retrying..$n"
|
||||||
sleep 1
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ do
|
||||||
&& break # substitute your command here
|
&& break # substitute your command here
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
|
|
||||||
if [ $n -ge 2 ]; then
|
if [ $n -ge 10 ]; then
|
||||||
echo "login failed"
|
echo "login failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "retrying login..$n"
|
echo "retrying login..$n"
|
||||||
sleep 1
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
|
@ -2,6 +2,13 @@
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [0.0.10](https://sigyl.com///compare/v0.0.9...v0.0.10) "chore(release): 0.0.10" (2020-09-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* retries only 10 times ([fc63973](https://sigyl.com///commit/fc6397378f786b5ca8f80aae60775d2c4600d727))
|
||||||
|
|
||||||
### [0.0.9](https://sigyl.com///compare/v0.0.8...v0.0.9) "chore(release): 0.0.9" (2020-09-24)
|
### [0.0.9](https://sigyl.com///compare/v0.0.8...v0.0.9) "chore(release): 0.0.9" (2020-09-24)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "drone",
|
"name": "drone",
|
||||||
"version": "0.0.9",
|
"version": "0.0.10",
|
||||||
"description": "drone ci",
|
"description": "drone ci",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deploy": "sh deploy.sh",
|
"deploy": "sh deploy.sh",
|
||||||
|
|
Loading…
Reference in New Issue