diff --git a/agent.codefly.yaml b/agent.codefly.yaml index 2119ebf..dcafebc 100644 --- a/agent.codefly.yaml +++ b/agent.codefly.yaml @@ -2,6 +2,9 @@ publisher: codefly.dev kind: codefly:service name: temporal version: 0.0.18 +source: + directory: . + agent: codefly.dev/go:0.0.56 release: owner: workflow workflow: releaser.yml diff --git a/release_test.go b/release_test.go index d15f99c..0665b7e 100644 --- a/release_test.go +++ b/release_test.go @@ -20,8 +20,12 @@ func TestReleaseDeclaresOnePublisherAndArchiveSBOMs(t *testing.T) { } var manifest struct { Release struct{ Owner, Workflow string } + Source struct{ Directory, Agent string } } read("agent.codefly.yaml", &manifest) + if manifest.Source.Directory != "." || manifest.Source.Agent == "" { + t.Fatal("publication must select a source packager even when several compatible agents are installed") + } if manifest.Release.Owner != "workflow" || manifest.Release.Workflow != "releaser.yml" { t.Fatal("the tag workflow must be the sole artifact publisher") }