diff --git a/.drone.yml b/.drone.yml index 5b19b42..76e61eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,14 +16,15 @@ steps: - go mod tidy - go test ./... - - name: build docker image - image: docker:24 - privileged: true - volumes: - - host: /var/run/docker.sock - mount: /var/run/docker.sock - commands: - - docker build -t link-shortener:latest . + - name: build and push + image: plugins/docker + settings: + repo: localhost:5000/link-shortener + tags: + - latest + - ${DRONE_BRANCH} + build_args: + - GO_ENV=production services: - name: redis