fix: use host docker
continuous-integration/drone/push Build is passing Details

master
icechen 2022-01-04 20:38:35 +08:00
parent 6727c61839
commit 287eb69266
4 changed files with 32 additions and 0 deletions

View File

@ -8,6 +8,9 @@ name: 部署production-api-{{ .Name }}
steps: steps:
- name: build - name: build
image: plugins/docker image: plugins/docker
volumes:
- name: docker
path: /var/run/docker.sock
settings: settings:
username: username:
from_secret: reg_username from_secret: reg_username
@ -41,4 +44,9 @@ steps:
- port={{ .Port }} - port={{ .Port }}
- host=t{{ .Host }} - host=t{{ .Host }}
- path={{ .Path }} - path={{ .Path }}
volumes:
- name: docker
host:
path: /var/run/docker.sock
` `

View File

@ -8,6 +8,9 @@ name: 部署test-api-{{ .Name }}
steps: steps:
- name: build - name: build
image: plugins/docker image: plugins/docker
volumes:
- name: docker
path: /var/run/docker.sock
settings: settings:
username: username:
from_secret: reg_username from_secret: reg_username
@ -41,4 +44,9 @@ steps:
- port={{ .Port }} - port={{ .Port }}
- host=t{{ .Host }} - host=t{{ .Host }}
- path={{ .Path }} - path={{ .Path }}
volumes:
- name: docker
host:
path: /var/run/docker.sock
` `

View File

@ -8,6 +8,9 @@ name: 部署production-service-{{ .Name }}
steps: steps:
- name: build - name: build
image: plugins/docker image: plugins/docker
volumes:
- name: docker
path: /var/run/docker.sock
settings: settings:
username: username:
from_secret: reg_username from_secret: reg_username
@ -39,4 +42,9 @@ steps:
- image=reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }} - image=reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}
- imageTag=${DRONE_TAG} - imageTag=${DRONE_TAG}
- port={{ .Port }} - port={{ .Port }}
volumes:
- name: docker
host:
path: /var/run/docker.sock
` `

View File

@ -8,6 +8,9 @@ name: 部署test-service-{{ .Name }}
steps: steps:
- name: build - name: build
image: plugins/docker image: plugins/docker
volumes:
- name: docker
path: /var/run/docker.sock
settings: settings:
username: username:
from_secret: reg_username from_secret: reg_username
@ -39,4 +42,9 @@ steps:
- image=reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }} - image=reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}
- imageTag=${DRONE_COMMIT:0:8} - imageTag=${DRONE_COMMIT:0:8}
- port={{ .Port }} - port={{ .Port }}
volumes:
- name: docker
host:
path: /var/run/docker.sock
` `