This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -16,14 +16,15 @@ steps:
|
|||||||
- go mod tidy
|
- go mod tidy
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
- name: build docker image
|
- name: build and push
|
||||||
image: docker:24
|
image: plugins/docker
|
||||||
privileged: true
|
settings:
|
||||||
volumes:
|
repo: localhost:5000/link-shortener
|
||||||
- host: /var/run/docker.sock
|
tags:
|
||||||
mount: /var/run/docker.sock
|
- latest
|
||||||
commands:
|
- ${DRONE_BRANCH}
|
||||||
- docker build -t link-shortener:latest .
|
build_args:
|
||||||
|
- GO_ENV=production
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: redis
|
- name: redis
|
||||||
|
|||||||
Reference in New Issue
Block a user