diff --git a/.drone.yml b/.drone.yml index cbe3eb2..194cd99 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,13 +11,13 @@ steps: - go test ./... - name: build and push docker image - image: plugins/docker - settings: - repo: 172.21.0.1:5000/link-shortener - tags: latest - dockerfile: dockerfile - registry: http://172.21.0.1:5000 - insecure: true + image: docker:24 + volumes: + - name: dockersock + path: /var/run/docker.sock + commands: + - docker build -t localhost:5000/link-shortener:latest -f dockerfile . + - docker push localhost:5000/link-shortener:latest - name: deploy with compose image: docker:24