update
continuous-integration/drone/push Build is passing Details

master
icechen 2022-01-03 01:15:04 +08:00
parent bb0aa05d0b
commit 7074461935
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ steps:
- name: docker - name: docker
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- docker rm -f {{ .NameSpace }}-api-{{ .Name }} - docker rm -f {{ .NameSpace }}-service-{{ .Name }}
- docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}:${DRONE_COMMIT:0:8} - docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}:${DRONE_COMMIT:0:8}
volumes: volumes:

View File

@ -24,7 +24,7 @@ steps:
- name: docker - name: docker
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- docker rm -f {{ .NameSpace }}-api-{{ .Name }} - docker rm -f {{ .NameSpace }}-service-{{ .Name }}
- docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}:${DRONE_COMMIT:0:8} - docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}:${DRONE_COMMIT:0:8}
volumes: volumes: