.
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 register = import 'node_modules/@sigyl/jsonnet-drone/register.libsonnet';
|
||||
|
||||
local config = {
|
||||
registry: '',
|
||||
};
|
||||
[
|
||||
register,
|
||||
deploy(
|
||||
deploy(config)(
|
||||
'drone',
|
||||
'/stack/',
|
||||
[
|
||||
|
|
|
@ -99,7 +99,7 @@ steps:
|
|||
target: /stack/drone
|
||||
|
||||
- name: wait
|
||||
image: alpine:3.12.0@sha256:90baa0922fe90624b05cb5766fa5da4e337921656c2f8e2b13bd3c052a0baac1
|
||||
image: "%(registry)salpine:3.12.0@sha256:90baa0922fe90624b05cb5766fa5da4e337921656c2f8e2b13bd3c052a0baac1"
|
||||
commands:
|
||||
- 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"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sigyl/jsonnet-drone": "^0.1.1"
|
||||
"@sigyl/jsonnet-drone": "^0.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ services:
|
|||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
image: drone/drone:1.9.0
|
||||
image: ${LOCAL_DOCKER_REGISTRY}drone/drone:1.9.0
|
||||
volumes:
|
||||
- drone:/var/lib/drone
|
||||
- drone-data:/data
|
||||
|
@ -37,7 +37,7 @@ services:
|
|||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
image: drone/drone-runner-docker:1.5.0
|
||||
image: ${LOCAL_DOCKER_REGISTRY}drone/drone-runner-docker:1.5.0
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
|
|
Loading…
Reference in New Issue