Some checks failed
continuous-integration/drone/push Build encountered an error
28 lines
473 B
YAML
28 lines
473 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
|
|
privileged: true
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
commands:
|
|
- docker build -t link-shortener:latest .
|
|
|
|
|
|
services:
|
|
- name: redis
|
|
image: redis:latest
|
|
|
|
trigger:
|
|
branch:
|
|
- main |