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

35 lines
591 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 and push
image: plugins/docker
settings:
repo: localhost:5000/link-shortener
tags:
- latest
- ${DRONE_BRANCH}
build_args:
- GO_ENV=production
services:
- name: redis
image: redis:latest
trigger:
branch:
- main