From 33ff7833f1c4367cf24c104d7b019b253369546f Mon Sep 17 00:00:00 2001 From: Giovanni Rezcjikov Date: Sat, 21 Feb 2026 15:44:13 +0300 Subject: [PATCH] initial commit --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f71a6f7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: go test + image: golang:1.25-alpine3.21 + commands: + - apk add --no-cache git curl + - go mod tidy + - go test ./... + + - name: build docker image + image: docker:24-dind + privileged: true + environment: + DOCKER_HOST: tcp://localhost:2375 + commands: + - docker build -t link-shortener:latest . + +services: + redis: + image: redis:latest + ports: + - 6379:6379 + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 5s + timeout: 3s + retries: 5 + start_period: 10s + +trigger: + branch: + - main \ No newline at end of file