30 lines
832 B
Plaintext
30 lines
832 B
Plaintext
function (config) {
|
|
docker(): {
|
|
name: 'docker',
|
|
image: '%(registry)sdocker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f' % config,
|
|
},
|
|
scp(target = ''): {
|
|
name: 'scp',
|
|
image: '%(registry)sappleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47' % config,
|
|
settings +: {
|
|
command_timeout: '2m',
|
|
target: target,
|
|
source: [
|
|
'.',
|
|
],
|
|
},
|
|
},
|
|
ssh(): {
|
|
image: '%(registry)sappleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea' % config,
|
|
settings +: {
|
|
envs: [
|
|
'drone_tag',
|
|
'drone_commit',
|
|
'drone_build_number',
|
|
'drone_repo_name',
|
|
'drone_repo_namespace',
|
|
],
|
|
script: [],
|
|
},
|
|
},
|
|
} |