build: change drone config to fix untrusted repo
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
d2423a8b1d
commit
48b4fed171
16
.drone.yml
16
.drone.yml
@ -1,24 +1,14 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: portfolio
|
name: portfolio
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:latest
|
image: plugins/docker
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
commands:
|
commands:
|
||||||
- docker build -t portfolio-image .
|
- docker build -t portfolio-image .
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker:latest
|
image: plugins/docker
|
||||||
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