Remove unnecessary docker-in-docker
continuous-integration/drone/push Build is passing Details

We're now launching new build servers, so security is less of a concern.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-12-16 19:01:43 +01:00
parent 3abec884c2
commit 78049cf7b6
1 changed files with 7 additions and 21 deletions

View File

@ -19,7 +19,7 @@ local add_build_steps() = [
volumes: [ volumes: [
{ {
name: 'dockersock', name: 'dockersock',
path: '/var/run', path: '/var/run/docker.sock',
}, },
], ],
commands: [ commands: [
@ -29,7 +29,7 @@ local add_build_steps() = [
'rm -rf target/' + arch.target + '/release/*', 'rm -rf target/' + arch.target + '/release/*',
], ],
environment: { environment: {
CROSS_REMOTE: true, CROSS_DOCKER_IN_DOCKER: true,
}, },
depends_on: ['Wait for Docker'], depends_on: ['Wait for Docker'],
} }
@ -57,11 +57,11 @@ local add_build_steps() = [
'docker pull hello-world:latest', 'docker pull hello-world:latest',
], ],
environment: { environment: {
CROSS_REMOTE: true, CROSS_DOCKER_IN_DOCKER: true,
}, },
volumes: [{ volumes: [{
name: 'dockersock', name: 'dockersock',
path: '/var/run', path: '/var/run/docker.sock',
}], }],
}] + }] +
add_build_steps() + add_build_steps() +
@ -92,26 +92,12 @@ local add_build_steps() = [
}, },
], ],
services: [{
name: 'docker',
image: 'docker:dind',
privileged: true,
volumes: [
{
name: 'dockersock',
path: '/var/run',
},
{
name: 'docker-storage',
path: '/var/lib/docker',
},
],
}],
volumes: [ volumes: [
{ {
name: 'dockersock', name: 'dockersock',
temp: {}, host: {
path: '/var/run/docker.sock',
},
}, },
], ],