When the one forgot commands directive, then they join to image => image cannot be pulled, pipeline stucks.
Steps to reproduce
Create and run pipeline
skip_clone: true
when:
event:
manual
steps:
hello:
image: alpine
echo Hello
echo world
2. See that it runs without errors and warnings
[Screenshot 2024-06-29 1](https://github.com/woodpecker-ci/woodpecker/assets/127358482/13f2ae81-f66b-4c6c-a5cb-3d742423e52d)
[Screenshot 2024-06-29 2](https://github.com/woodpecker-ci/woodpecker/assets/127358482/ab7bb794-9aa2-426c-b22f-59235ea91d80)
3. Pipeline stucks until timed out or cancelled manually
4. Check Pods and see errors
Component
server
Describe the bug
When the one forgot
commands
directive, then they join toimage
=> image cannot be pulled, pipeline stucks.Steps to reproduce
when:
steps: hello: image: alpine
Error: InvalidImageName
Failed to apply default image tag "alpine - echo Hello - echo world": couldn't parse image name "alpine - echo Hello - echo world": invalid reference format: repository name (library/alpine - echo Hello - echo world) must be lowercase
Expected behavior
Pipeline should fail and linter should warn about missed
commands
as well.System Info
Additional context
woodpecker-server.log woodpecker-agent.log
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]