This commit is contained in:
14
.drone.yml
14
.drone.yml
@@ -11,13 +11,13 @@ steps:
|
||||
- go test ./...
|
||||
|
||||
- name: build and push docker image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: 172.21.0.1:5000/link-shortener
|
||||
tags: latest
|
||||
dockerfile: dockerfile
|
||||
registry: http://172.21.0.1:5000
|
||||
insecure: true
|
||||
image: docker:24
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t localhost:5000/link-shortener:latest -f dockerfile .
|
||||
- docker push localhost:5000/link-shortener:latest
|
||||
|
||||
- name: deploy with compose
|
||||
image: docker:24
|
||||
|
||||
Reference in New Issue
Block a user