build: change drone config to fix docker daemon error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
2351e6d421
commit
d2423a8b1d
18
.drone.yml
18
.drone.yml
@ -3,12 +3,22 @@ name: portfolio
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker
|
image: docker:latest
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker build -t portfolio .
|
- docker build -t portfolio-image .
|
||||||
- docker push portfolio-image
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker
|
image: docker:latest
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker run -p 8180:8180 -d portfolio-image
|
- docker run -p 8180:8180 -d portfolio-image
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user