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

master
icechen 2022-01-02 21:53:30 +08:00
parent 3a031cc28d
commit 0763cd72b5
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -28,7 +28,7 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- docker rm -f {{ .NameSpace }}-api-{{ .Name }} - docker rm -f {{ .NameSpace }}-api-{{ .Name }}
- docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/{{ .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:
- name: docker - name: docker

View File

@ -28,7 +28,7 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- docker rm -f {{ .NameSpace }}-api-{{ .Name }} - docker rm -f {{ .NameSpace }}-api-{{ .Name }}
- docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/{{ .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:
- name: docker - name: docker