Mount docker socket
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
parent
11e3a291bf
commit
7bfbbbd485
|
@ -5,6 +5,9 @@ name: ci
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: debian:12
|
image: debian:12
|
||||||
|
volumes:
|
||||||
|
- name: dockersocket
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- TAG=$${DRONE_TAG:-$DRONE_BRANCH} # set tag to tag name (if applicable) or branch name
|
- 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
|
- apt-get update && apt-get install -y curl # install dependencies from apt
|
||||||
|
@ -12,3 +15,8 @@ steps:
|
||||||
- sh ./get-docker.sh
|
- sh ./get-docker.sh
|
||||||
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d # install task
|
- 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
|
Loading…
Reference in New Issue