diff --git a/.drone.yml b/.drone.yml index 08a0712..63f0f5c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,8 @@ steps: image: docker:24 privileged: true volumes: - - /var/run/docker.sock:/var/run/docker.sock + - name: dockersock + path: /var/run/docker.sock commands: - docker build -t localhost:5000/link-shortener:latest -f dockerfile . @@ -22,8 +23,10 @@ steps: image: docker/compose:2.22.0 privileged: true volumes: - - /var/run/docker.sock:/var/run/docker.sock - - ./:/opt/app + - name: dockersock + path: /var/run/docker.sock + - name: workspace + path: /opt/app environment: IMAGE: localhost:5000/link-shortener:latest SERVER_HOST: link.dusiburg.ru @@ -43,6 +46,9 @@ volumes: - name: dockersock host: path: /var/run/docker.sock + - name: workspace + host: + path: ./ trigger: branch: