update
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9d2f9d6c32
commit
6648d69196
|
@ -64,9 +64,11 @@ func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config,
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
retData := destinationApi + "\n\n" + destinationService
|
||||||
|
logrus.Info(retData)
|
||||||
// 5. 组装所有ci信息并输出
|
// 5. 组装所有ci信息并输出
|
||||||
return &drone.Config{
|
return &drone.Config{
|
||||||
Data: destinationApi + "\n\n" + destinationService,
|
Data: retData,
|
||||||
Kind: "pipeline",
|
Kind: "pipeline",
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ steps:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker rm -f {{ .NameSpace }}-{{ .Name }}
|
- docker rm -f {{ .NameSpace }}-{{ .Name }}
|
||||||
- docker run -d --name="{{ .NameSpace }}-{{ .Name }}" reg.icechen.cn/{{ .NameSpace }}/{{ .Name }}:${DRONE_COMMIT:0:8}
|
- docker run -d --name="{{ .NameSpace }}-{{ .Name }}" --network="nginx-net" reg.icechen.cn/{{ .NameSpace }}/{{ .Name }}:${DRONE_COMMIT:0:8}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker
|
- name: docker
|
||||||
|
|
Loading…
Reference in New Issue