fix: skip service container for empty image (#2281)

* fix: skip service container for empty image

It is used to skip empty image name in services which is the only way to handle condition services in github action currently https://github.com/actions/runner/issues/822

* test: add testdata for empty image in services

* fix: add missing test call

* fix: wring test call

* fix: invalid without expression

---------

Co-authored-by: ChristopherHX <christopher.homberger@web.de>
This commit is contained in:
Louis Auzuret
2024-06-05 21:16:34 +02:00
committed by GitHub
parent b5ad3c4acd
commit e4607fc791
3 changed files with 34 additions and 1 deletions

View File

@@ -314,6 +314,7 @@ func TestRunEvent(t *testing.T) {
// services
{workdir, "services", "push", "", platforms, secrets},
{workdir, "services-empty-image", "push", "", platforms, secrets},
{workdir, "services-host-network", "push", "", platforms, secrets},
{workdir, "services-with-container", "push", "", platforms, secrets},