This commit is contained in:
12
.drone.yml
12
.drone.yml
@@ -14,7 +14,8 @@ steps:
|
|||||||
image: docker:24
|
image: docker:24
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker build -t localhost:5000/link-shortener:latest -f dockerfile .
|
- docker build -t localhost:5000/link-shortener:latest -f dockerfile .
|
||||||
|
|
||||||
@@ -22,8 +23,10 @@ steps:
|
|||||||
image: docker/compose:2.22.0
|
image: docker/compose:2.22.0
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- name: dockersock
|
||||||
- ./:/opt/app
|
path: /var/run/docker.sock
|
||||||
|
- name: workspace
|
||||||
|
path: /opt/app
|
||||||
environment:
|
environment:
|
||||||
IMAGE: localhost:5000/link-shortener:latest
|
IMAGE: localhost:5000/link-shortener:latest
|
||||||
SERVER_HOST: link.dusiburg.ru
|
SERVER_HOST: link.dusiburg.ru
|
||||||
@@ -43,6 +46,9 @@ volumes:
|
|||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
- name: workspace
|
||||||
|
host:
|
||||||
|
path: ./
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
Reference in New Issue
Block a user