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

master
icechen 2021-12-29 20:28:37 +08:00
parent 9d2f9d6c32
commit 6648d69196
2 changed files with 4 additions and 2 deletions

View File

@ -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
} }

View File

@ -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