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

27 lines
471 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:
- name: redis
image: redis:latest
trigger:
branch:
- main