This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -16,14 +16,15 @@ steps:
|
||||
- go mod tidy
|
||||
- go test ./...
|
||||
|
||||
- name: build docker image
|
||||
image: docker:24
|
||||
privileged: true
|
||||
volumes:
|
||||
- host: /var/run/docker.sock
|
||||
mount: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t link-shortener:latest .
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user