diff --git a/.drone.yml b/.drone.yml index 591d936..cb38879 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,18 +33,22 @@ steps: - cat $HOME/.ssh/id_ed25519 - name: build - image: kasperhermansen/cuddle:latest + image: quay.io/testcontainers/dind-drone-plugin + settings: + build_image: kasperhermansen/cuddle:latest + + cmd: sleep 3 && cuddle_cli x build_cuddle_image volumes: - name: ssh path: /root/.ssh/ + - name: dockersock + path: /var/run environment: DOCKER_BUILDKIT: 1 DOCKER_USERNAME: from_secret: docker_username DOCKER_PASSWORD: from_secret: docker_password - commands: - - cuddle_cli x build_cuddle_image depends_on: - "load_secret" @@ -58,6 +62,16 @@ steps: when: status: [failure] +services: +- name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + volumes: - name: ssh temp: {} + - name: dockersock + temp: {}