search-cassette
Search cassette CI/CD.
Installation
dagger install github.com/papercomputeco/search-cassette@0cf7d7bc79cf51c769abe1a72da4fb58d986276aEntrypoint
Return Type
SearchCassette !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Project source directory. |
Example
dagger -m github.com/papercomputeco/search-cassette@0cf7d7bc79cf51c769abe1a72da4fb58d986276a call \
func (m *MyModule) Example() *dagger.SearchCassette {
return dag.
Searchcassette()
}@function
def example() -> dagger.SearchCassette:
return (
dag.search_cassette()
)@func()
example(): SearchCassette {
return dag
.searchCassette()
}Types
SearchCassette 🔗
buildImage() 🔗
BuildImage builds the local-platform search cassette image. It is deliberately unstamped: a local build is not a release, and an image that claims a version it was never published under is the drift the stamping exists to prevent.
Return Type
Container ! Example
dagger -m github.com/papercomputeco/search-cassette@0cf7d7bc79cf51c769abe1a72da4fb58d986276a call \
build-imagefunc (m *MyModule) Example() *dagger.Container {
return dag.
Searchcassette().
Buildimage()
}@function
def example() -> dagger.Container:
return (
dag.search_cassette()
.buildimage()
)@func()
example(): Container {
return dag
.searchCassette()
.buildImage()
}buildPushImage() 🔗
BuildPushImage builds and publishes the multi-platform search cassette image, stamped with the release identity and refusing to publish unless the stamp is proven to have landed.
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| registry | String ! | - | Registry namespace, for example public.ecr.aws/example/papercomputeco. |
| tags | [String ! ] ! | - | Tags to publish, for example [“v1.0.0”, “latest”]. |
| version | String | - | Release identity to stamp, for example “v1.0.0”. Empty publishes an unstamped image, which only a non-release path should want. |
Example
dagger -m github.com/papercomputeco/search-cassette@0cf7d7bc79cf51c769abe1a72da4fb58d986276a call \
build-push-image --registry string --tags string1 --tags string2func (m *MyModule) Example(ctx context.Context, registry string, tags []string) []string {
return dag.
Searchcassette().
Buildpushimage(ctx, registry, tags)
}@function
async def example(registry: str, tags: List[str]) -> List[str]:
return await (
dag.search_cassette()
.buildpushimage(registry, tags)
)@func()
async example(registry: string, tags: string[]): Promise<string[]> {
return dag
.searchCassette()
.buildPushImage(registry, tags)
}test() 🔗
Test runs the test suites with a just-in-time Postgres service exposed as TEST_POSTGRES_DSN, so the DB-backed specs run against the real engine instead of skipping.
Return Type
String ! Example
dagger -m github.com/papercomputeco/search-cassette@0cf7d7bc79cf51c769abe1a72da4fb58d986276a call \
testfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Searchcassette().
Test(ctx)
}@function
async def example() -> str:
return await (
dag.search_cassette()
.test()
)@func()
async example(): Promise<string> {
return dag
.searchCassette()
.test()
}