.
This commit is contained in:
parent
a87bfd0d8b
commit
f53d1e57e0
|
@ -4,9 +4,13 @@ local publicSecrets = import 'lib/public-secrets.libsonnet';
|
||||||
|
|
||||||
local deploy = import 'node_modules/@sigyl/jsonnet-drone/deploy.libsonnet';
|
local deploy = import 'node_modules/@sigyl/jsonnet-drone/deploy.libsonnet';
|
||||||
local register = import 'node_modules/@sigyl/jsonnet-drone/register.libsonnet';
|
local register = import 'node_modules/@sigyl/jsonnet-drone/register.libsonnet';
|
||||||
|
|
||||||
|
local config = {
|
||||||
|
registry: '',
|
||||||
|
};
|
||||||
[
|
[
|
||||||
register,
|
register,
|
||||||
deploy(
|
deploy(config)(
|
||||||
'drone',
|
'drone',
|
||||||
'/stack/',
|
'/stack/',
|
||||||
[
|
[
|
||||||
|
|
|
@ -99,7 +99,7 @@ steps:
|
||||||
target: /stack/drone
|
target: /stack/drone
|
||||||
|
|
||||||
- name: wait
|
- name: wait
|
||||||
image: alpine:3.12.0@sha256:90baa0922fe90624b05cb5766fa5da4e337921656c2f8e2b13bd3c052a0baac1
|
image: "%(registry)salpine:3.12.0@sha256:90baa0922fe90624b05cb5766fa5da4e337921656c2f8e2b13bd3c052a0baac1"
|
||||||
commands:
|
commands:
|
||||||
- sleep 15
|
- sleep 15
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
docker pull $2 \
|
||||||
|
&& docker tag $2 $1$2 \
|
||||||
|
&& docker push $1$2
|
|
@ -0,0 +1,2 @@
|
||||||
|
sh $(dirname $0)/initialise-image.sh $1 drone/drone:1.9.0 \
|
||||||
|
&& sh $(dirname $0)/initialise-image.sh $1 drone-runner-docker:1.5.0
|
|
@ -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.1.1"
|
"@sigyl/jsonnet-drone": "^0.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
image: drone/drone:1.9.0
|
image: ${LOCAL_DOCKER_REGISTRY}drone/drone:1.9.0
|
||||||
volumes:
|
volumes:
|
||||||
- drone:/var/lib/drone
|
- drone:/var/lib/drone
|
||||||
- drone-data:/data
|
- drone-data:/data
|
||||||
|
@ -37,7 +37,7 @@ services:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
image: drone/drone-runner-docker:1.5.0
|
image: ${LOCAL_DOCKER_REGISTRY}drone/drone-runner-docker:1.5.0
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue