fix: use host docker
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6727c61839
commit
287eb69266
|
@ -8,6 +8,9 @@ name: 部署production-api-{{ .Name }}
|
|||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
settings:
|
||||
username:
|
||||
from_secret: reg_username
|
||||
|
@ -41,4 +44,9 @@ steps:
|
|||
- port={{ .Port }}
|
||||
- host=t{{ .Host }}
|
||||
- path={{ .Path }}
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
`
|
||||
|
|
|
@ -8,6 +8,9 @@ name: 部署test-api-{{ .Name }}
|
|||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
settings:
|
||||
username:
|
||||
from_secret: reg_username
|
||||
|
@ -41,4 +44,9 @@ steps:
|
|||
- port={{ .Port }}
|
||||
- host=t{{ .Host }}
|
||||
- path={{ .Path }}
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
`
|
||||
|
|
|
@ -8,6 +8,9 @@ name: 部署production-service-{{ .Name }}
|
|||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
settings:
|
||||
username:
|
||||
from_secret: reg_username
|
||||
|
@ -39,4 +42,9 @@ steps:
|
|||
- image=reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}
|
||||
- imageTag=${DRONE_TAG}
|
||||
- port={{ .Port }}
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
`
|
||||
|
|
|
@ -8,6 +8,9 @@ name: 部署test-service-{{ .Name }}
|
|||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
settings:
|
||||
username:
|
||||
from_secret: reg_username
|
||||
|
@ -39,4 +42,9 @@ steps:
|
|||
- image=reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}
|
||||
- imageTag=${DRONE_COMMIT:0:8}
|
||||
- port={{ .Port }}
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue