Files
link-shortener/.drone.yml
Giovanni Rezcjikov 41bdc9736b
All checks were successful
continuous-integration/drone/push Build is passing
.drone.yml fix
2026-02-21 16:14:15 +03:00

34 lines
570 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 and push
image: plugins/docker
settings:
repo: localhost:5000/link-shortener
insecure: true
tags: latest
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