From 6f761f6c0a399ef33d8507e76a3184d4ec2ac215 Mon Sep 17 00:00:00 2001 From: Giovanni Rezcjikov Date: Sat, 21 Feb 2026 16:11:57 +0300 Subject: [PATCH] .drone.yml and docker-compose.yml fix --- .drone.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index ce7a46b..2d180db 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,15 +2,9 @@ kind: pipeline type: docker name: default -workspace: - base: /drone/src - path: link-shortener - steps: - name: go test image: golang:1.25-alpine3.21 - environment: - REDIS_URL: redis://redis:6379 commands: - apk add --no-cache git curl - go mod tidy @@ -20,16 +14,21 @@ steps: image: plugins/docker settings: repo: registry:5000/link-shortener - insecure: true - dockerfile: dockerfile + insecure: true tags: latest - build_args: - - GO_ENV=production + volumes: + - name: dockersock + path: /var/run/docker.sock services: - name: redis image: redis:latest +volumes: + - name: dockersock + host: + path: /var/run/docker.sock + trigger: branch: - main \ No newline at end of file