squid/.drone/lib/images.libsonnet

38 lines
684 B
Plaintext
Raw Normal View History

2020-08-05 07:44:33 +00:00
local settings = import 'settings.libsonnet';
2020-08-05 07:30:16 +00:00
{
docker: {
name: 'docker',
image: 'docker:dind',
},
2020-08-05 07:44:33 +00:00
scp(target): settings.ssh {
2020-08-05 07:30:16 +00:00
name: 'scp',
image: 'appleboy/drone-scp',
2020-08-05 07:44:33 +00:00
settings +: {
2020-08-05 07:30:16 +00:00
command_timeout: '2m',
target: target,
source: [
'.',
],
},
},
2020-08-05 07:44:33 +00:00
ssh: settings.ssh {
2020-08-05 07:30:16 +00:00
image: 'appleboy/drone-ssh',
2020-08-05 07:44:33 +00:00
settings +: {
2020-08-05 07:30:16 +00:00
envs: [
'drone_tag',
'drone_commit',
'drone_build_number',
'drone_repo_name',
'drone_repo_namespace',
],
script: [],
},
},
wait(delay): {
image: 'alpine',
name: 'wait',
commands: [
'sleep %s' % delay,
],
}
}