This reverts #86. Some images use a custom entry point for specific usage, then `[entrypoint] [cmd]` like `helm /bin/sleep 1` will failed. It causes https://gitea.com/gitea/helm-chart/actions/runs/755 since the image is `alpine/helm`. ```yaml check-and-test: runs-on: ubuntu-latest container: alpine/helm:3.14.3 ``` Reviewed-on: https://gitea.com/gitea/act/pulls/107 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
64876e3696
commit
e1b1e81124
|
@ -410,8 +410,8 @@ func (rc *RunContext) startJobContainer() common.Executor {
|
||||||
jobContainerNetwork = networkName
|
jobContainerNetwork = networkName
|
||||||
|
|
||||||
rc.JobContainer = container.NewContainer(&container.NewContainerInput{
|
rc.JobContainer = container.NewContainer(&container.NewContainerInput{
|
||||||
Cmd: []string{"/bin/sleep", fmt.Sprint(rc.Config.ContainerMaxLifetime.Round(time.Second).Seconds())},
|
Cmd: nil,
|
||||||
Entrypoint: nil,
|
Entrypoint: []string{"/bin/sleep", fmt.Sprint(rc.Config.ContainerMaxLifetime.Round(time.Second).Seconds())},
|
||||||
WorkingDir: ext.ToContainerPath(rc.Config.Workdir),
|
WorkingDir: ext.ToContainerPath(rc.Config.Workdir),
|
||||||
Image: image,
|
Image: image,
|
||||||
Username: username,
|
Username: username,
|
||||||
|
|
Loading…
Reference in New Issue