Files
link-shortener/.drone.yml
Giovanni Rezcjikov 33ff7833f1
Some checks failed
continuous-integration/drone Build encountered an error
initial commit
2026-02-21 15:44:13 +03:00

35 lines
629 B
YAML

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