build: change drone config to test pipeline
This commit is contained in:
parent
48b4fed171
commit
c96d88e62a
16
.drone.yml
16
.drone.yml
@ -1,14 +1,24 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: portfolio
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t portfolio-image .
|
||||
|
||||
- name: deploy
|
||||
image: plugins/docker
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- 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