build: change drone config to fix docker daemon error

This commit is contained in:
Danilo Cesa
2025-08-02 00:32:24 +08:00
parent 2351e6d421
commit d2423a8b1d
+14 -4
View File
@@ -3,12 +3,22 @@ name: portfolio
steps:
- name: build
image: docker
image: docker:latest
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -t portfolio .
- docker push portfolio-image
- docker build -t portfolio-image .
- name: deploy
image: docker
image: docker:latest
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker run -p 8180:8180 -d portfolio-image
volumes:
- name: dockersock
host:
path: /var/run/docker.sock