Mount docker socket
continuous-integration/drone/pr Build is failing Details

pull/5/head
jhot 2023-11-01 09:03:33 -06:00
parent 11e3a291bf
commit 7bfbbbd485
Signed by: jhot
GPG Key ID: 612ED70E22571DD4
1 changed files with 9 additions and 1 deletions

View File

@ -5,10 +5,18 @@ name: ci
steps:
- name: build
image: debian:12
volumes:
- name: dockersocket
path: /var/run/docker.sock
commands:
- TAG=$${DRONE_TAG:-$DRONE_BRANCH} # set tag to tag name (if applicable) or branch name
- apt-get update && apt-get install -y curl # install dependencies from apt
- curl -fsSL https://get.docker.com -o get-docker.sh # install docker
- sh ./get-docker.sh
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d # install task
- ./bin/task build # build the docker image
- ./bin/task build # build the docker image
volumes:
- name: dockersocket
host:
path: /var/run/docker.sock