This commit is contained in:
@@ -2,9 +2,15 @@ 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
|
||||
@@ -18,7 +24,6 @@ steps:
|
||||
commands:
|
||||
- docker build -t link-shortener:latest .
|
||||
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
image: redis:latest
|
||||
|
||||
Reference in New Issue
Block a user