build: change drone config to fix untrusted repo
This commit is contained in:
+3
-13
@@ -1,24 +1,14 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: portfolio
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
image: plugins/docker
|
||||
commands:
|
||||
- docker build -t portfolio-image .
|
||||
|
||||
- name: deploy
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
image: plugins/docker
|
||||
commands:
|
||||
- docker run -p 8180:8180 -d portfolio-image
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
Reference in New Issue
Block a user