Files
link-shortener/.drone.yml
Giovanni Rezcjikov b59a86bc52
Some checks failed
continuous-integration/drone/push Build is failing
.drone.yml fix
2026-02-21 15:54:18 +03:00

34 lines
600 B
YAML

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
- 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 .
services:
- name: redis
image: redis:latest
trigger:
branch:
- main