.drone.yml and docker-compose.yml fix
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -2,15 +2,9 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /drone/src
|
|
||||||
path: link-shortener
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: go test
|
- name: go test
|
||||||
image: golang:1.25-alpine3.21
|
image: golang:1.25-alpine3.21
|
||||||
environment:
|
|
||||||
REDIS_URL: redis://redis:6379
|
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache git curl
|
- apk add --no-cache git curl
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
@@ -21,15 +15,20 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
repo: registry:5000/link-shortener
|
repo: registry:5000/link-shortener
|
||||||
insecure: true
|
insecure: true
|
||||||
dockerfile: dockerfile
|
|
||||||
tags: latest
|
tags: latest
|
||||||
build_args:
|
volumes:
|
||||||
- GO_ENV=production
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
Reference in New Issue
Block a user