Files
link-shortener/.drone.yml
Giovanni Rezcjikov 6f761f6c0a
Some checks failed
continuous-integration/drone/push Build is failing
.drone.yml and docker-compose.yml fix
2026-02-21 16:11:57 +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: registry: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