gh-reusable-pipelines
No long description provided.
Installation
dagger install github.com/mbround18/gh-reusable/dagger-module@f93047502a9a8fbe3398724bf4e4b0b45f7739beEntrypoint
Return Type
GhReusablePipelines Example
dagger -m github.com/mbround18/gh-reusable/dagger-module@f93047502a9a8fbe3398724bf4e4b0b45f7739be call \
func (m *MyModule) Example() *dagger.GhReusablePipelines {
return dag.
Ghreusablepipelines()
}@function
def example() -> dagger.GhReusablePipelines:
return (
dag.gh_reusable_pipelines()
)@func()
example(): GhReusablePipelines {
return dag
.ghReusablePipelines()
}Types
GhReusablePipelines 🔗
ci() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/dagger-module@f93047502a9a8fbe3398724bf4e4b0b45f7739be call \
ci --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Ghreusablepipelines().
Ci(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.gh_reusable_pipelines()
.ci(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.ghReusablePipelines()
.ci(source)
}rustBuildAndTest() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| toolchain | String ! | "stable" | No description provided |
| components | String ! | "clippy rustfmt" | No description provided |
| target | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/dagger-module@f93047502a9a8fbe3398724bf4e4b0b45f7739be call \
rust-build-and-test --source DIR_PATH --toolchain string --components string --target stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, toolchain string, components string, target string) string {
return dag.
Ghreusablepipelines().
Rustbuildandtest(ctx, source, toolchain, components, target)
}@function
async def example(source: dagger.Directory, toolchain: str, components: str, target: str) -> str:
return await (
dag.gh_reusable_pipelines()
.rustbuildandtest(source, toolchain, components, target)
)@func()
async example(source: Directory, toolchain: string, components: string, target: string): Promise<string> {
return dag
.ghReusablePipelines()
.rustBuildAndTest(source, toolchain, components, target)
}dockerRelease() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| image | String ! | - | No description provided |
| context | String ! | "." | No description provided |
| dockerfile | String ! | "./Dockerfile" | No description provided |
| target | String ! | "" | No description provided |
| platforms | String ! | "linux/amd64" | No description provided |
| tagsCsv | String ! | "" | No description provided |
| registriesCsv | String ! | "docker.io" | No description provided |
| semverPrefix | String ! | "" | No description provided |
| semverIncrement | String ! | "patch" | No description provided |
| prependTarget | Boolean ! | false | No description provided |
| canaryLabel | String ! | "canary" | No description provided |
| dockerhubUsername | String ! | "mbround18" | No description provided |
| ghcrUsername | String ! | "mbround18" | No description provided |
| forcePush | Boolean ! | false | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/dagger-module@f93047502a9a8fbe3398724bf4e4b0b45f7739be call \
docker-release --source DIR_PATH --image string --context string --dockerfile string --target string --platforms string --tags-csv string --registries-csv string --semver-prefix string --semver-increment string --prepend-target boolean --canary-label string --dockerhub-username string --ghcr-username string --force-push booleanfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, image string, context string, dockerfile string, target string, platforms string, tagsCsv string, registriesCsv string, semverPrefix string, semverIncrement string, prependTarget bool, canaryLabel string, dockerhubUsername string, ghcrUsername string, forcePush bool) string {
return dag.
Ghreusablepipelines().
Dockerrelease(ctx, source, image, context, dockerfile, target, platforms, tagsCsv, registriesCsv, semverPrefix, semverIncrement, prependTarget, canaryLabel, dockerhubUsername, ghcrUsername, forcePush)
}@function
async def example(source: dagger.Directory, image: str, context: str, dockerfile: str, target: str, platforms: str, tagscsv: str, registriescsv: str, semverprefix: str, semverincrement: str, prependtarget: bool, canarylabel: str, dockerhubusername: str, ghcrusername: str, forcepush: bool) -> str:
return await (
dag.gh_reusable_pipelines()
.dockerrelease(source, image, context, dockerfile, target, platforms, tagscsv, registriescsv, semverprefix, semverincrement, prependtarget, canarylabel, dockerhubusername, ghcrusername, forcepush)
)@func()
async example(source: Directory, image: string, context: string, dockerfile: string, target: string, platforms: string, tagsCsv: string, registriesCsv: string, semverPrefix: string, semverIncrement: string, prependTarget: boolean, canaryLabel: string, dockerhubUsername: string, ghcrUsername: string, forcePush: boolean): Promise<string> {
return dag
.ghReusablePipelines()
.dockerRelease(source, image, context, dockerfile, target, platforms, tagsCsv, registriesCsv, semverPrefix, semverIncrement, prependTarget, canaryLabel, dockerhubUsername, ghcrUsername, forcePush)
}