gh-reusable-pipelines
No long description provided.
Installation
dagger install github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492Entrypoint
Return Type
GhReusablePipelines Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 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/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 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)
}enforcePrLabels() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| labelsCsv | String ! | "" | No description provided |
| requiredAnyCsv | String ! | "" | No description provided |
| bannedCsv | String ! | "" | No description provided |
| requiredAnyDescription | String ! | "Select at least one required label" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
enforce-pr-labels --labels-csv string --required-any-csv string --banned-csv string --required-any-description stringfunc (m *MyModule) Example(ctx context.Context, labelsCsv string, requiredAnyCsv string, bannedCsv string, requiredAnyDescription string) string {
return dag.
GhReusablePipelines().
EnforcePrLabels(ctx, labelsCsv, requiredAnyCsv, bannedCsv, requiredAnyDescription)
}@function
async def example(labels_csv: str, required_any_csv: str, banned_csv: str, required_any_description: str) -> str:
return await (
dag.gh_reusable_pipelines()
.enforce_pr_labels(labels_csv, required_any_csv, banned_csv, required_any_description)
)@func()
async example(labelsCsv: string, requiredAnyCsv: string, bannedCsv: string, requiredAnyDescription: string): Promise<string> {
return dag
.ghReusablePipelines()
.enforcePrLabels(labelsCsv, requiredAnyCsv, bannedCsv, requiredAnyDescription)
}notifyDiscord() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| webhookUrl | String ! | - | No description provided |
| title | String ! | - | No description provided |
| description | String ! | "" | No description provided |
| color | Integer ! | 5793266 | No description provided |
| fieldsJson | String ! | "[]" | No description provided |
| url | String ! | "" | No description provided |
| footer | String ! | "gh-reusable" | No description provided |
| username | String ! | "gh-reusable" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
notify-discord --webhook-url string --title string --description string --color integer --fields-json string --url string --footer string --username stringfunc (m *MyModule) Example(ctx context.Context, webhookUrl string, title string, description string, color int, fieldsJson string, url string, footer string, username string) string {
return dag.
GhReusablePipelines().
NotifyDiscord(ctx, webhookUrl, title, description, color, fieldsJson, url, footer, username)
}@function
async def example(webhook_url: str, title: str, description: str, color: int, fields_json: str, url: str, footer: str, username: str) -> str:
return await (
dag.gh_reusable_pipelines()
.notify_discord(webhook_url, title, description, color, fields_json, url, footer, username)
)@func()
async example(webhookUrl: string, title: string, description: string, color: number, fieldsJson: string, url: string, footer: string, username: string): Promise<string> {
return dag
.ghReusablePipelines()
.notifyDiscord(webhookUrl, title, description, color, fieldsJson, url, footer, username)
}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/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 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()
.rust_build_and_test(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)
}audit() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| semgrepConfig | String ! | "auto" | No description provided |
| includeGitleaks | Boolean ! | true | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
audit --source DIR_PATH --semgrep-config string --include-gitleaks booleanfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, semgrepConfig string, includeGitleaks bool) string {
return dag.
GhReusablePipelines().
Audit(ctx, source, semgrepConfig, includeGitleaks)
}@function
async def example(source: dagger.Directory, semgrep_config: str, include_gitleaks: bool) -> str:
return await (
dag.gh_reusable_pipelines()
.audit(source, semgrep_config, include_gitleaks)
)@func()
async example(source: Directory, semgrepConfig: string, includeGitleaks: boolean): Promise<string> {
return dag
.ghReusablePipelines()
.audit(source, semgrepConfig, includeGitleaks)
}publishNpm() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| registry | String ! | "https://registry.npmjs.org" | No description provided |
| token | String ! | "" | No description provided |
| tag | String ! | "" | No description provided |
| version | String ! | "" | No description provided |
| discordWebhook | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
publish-npm --source DIR_PATH --registry string --token string --tag string --version string --discord-webhook stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, registry string, token string, tag string, version string, discordWebhook string) string {
return dag.
GhReusablePipelines().
PublishNpm(ctx, source, registry, token, tag, version, discordWebhook)
}@function
async def example(source: dagger.Directory, registry: str, token: str, tag: str, version: str, discord_webhook: str) -> str:
return await (
dag.gh_reusable_pipelines()
.publish_npm(source, registry, token, tag, version, discord_webhook)
)@func()
async example(source: Directory, registry: string, token: string, tag: string, version: string, discordWebhook: string): Promise<string> {
return dag
.ghReusablePipelines()
.publishNpm(source, registry, token, tag, version, discordWebhook)
}publishPnpm() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| registry | String ! | "https://registry.npmjs.org" | No description provided |
| token | String ! | "" | No description provided |
| tag | String ! | "" | No description provided |
| version | String ! | "" | No description provided |
| discordWebhook | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
publish-pnpm --source DIR_PATH --registry string --token string --tag string --version string --discord-webhook stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, registry string, token string, tag string, version string, discordWebhook string) string {
return dag.
GhReusablePipelines().
PublishPnpm(ctx, source, registry, token, tag, version, discordWebhook)
}@function
async def example(source: dagger.Directory, registry: str, token: str, tag: str, version: str, discord_webhook: str) -> str:
return await (
dag.gh_reusable_pipelines()
.publish_pnpm(source, registry, token, tag, version, discord_webhook)
)@func()
async example(source: Directory, registry: string, token: string, tag: string, version: string, discordWebhook: string): Promise<string> {
return dag
.ghReusablePipelines()
.publishPnpm(source, registry, token, tag, version, discordWebhook)
}publishYarn() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| registry | String ! | "https://registry.npmjs.org" | No description provided |
| token | String ! | "" | No description provided |
| tag | String ! | "" | No description provided |
| version | String ! | "" | No description provided |
| discordWebhook | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
publish-yarn --source DIR_PATH --registry string --token string --tag string --version string --discord-webhook stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, registry string, token string, tag string, version string, discordWebhook string) string {
return dag.
GhReusablePipelines().
PublishYarn(ctx, source, registry, token, tag, version, discordWebhook)
}@function
async def example(source: dagger.Directory, registry: str, token: str, tag: str, version: str, discord_webhook: str) -> str:
return await (
dag.gh_reusable_pipelines()
.publish_yarn(source, registry, token, tag, version, discord_webhook)
)@func()
async example(source: Directory, registry: string, token: string, tag: string, version: string, discordWebhook: string): Promise<string> {
return dag
.ghReusablePipelines()
.publishYarn(source, registry, token, tag, version, discordWebhook)
}publishRustCrate() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| token | String ! | "" | No description provided |
| version | String ! | "" | No description provided |
| registry | String ! | "crates.io" | No description provided |
| discordWebhook | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
publish-rust-crate --source DIR_PATH --token string --version string --registry string --discord-webhook stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, token string, version string, registry string, discordWebhook string) string {
return dag.
GhReusablePipelines().
PublishRustCrate(ctx, source, token, version, registry, discordWebhook)
}@function
async def example(source: dagger.Directory, token: str, version: str, registry: str, discord_webhook: str) -> str:
return await (
dag.gh_reusable_pipelines()
.publish_rust_crate(source, token, version, registry, discord_webhook)
)@func()
async example(source: Directory, token: string, version: string, registry: string, discordWebhook: string): Promise<string> {
return dag
.ghReusablePipelines()
.publishRustCrate(source, token, version, registry, discordWebhook)
}publishHelmChart() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| chart | String ! | "." | No description provided |
| registry | String ! | "oci://registry-1.docker.io/helm-charts" | No description provided |
| username | String ! | "" | No description provided |
| password | String ! | "" | No description provided |
| version | String ! | "" | No description provided |
| discordWebhook | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
publish-helm-chart --source DIR_PATH --chart string --registry string --username string --password string --version string --discord-webhook stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, chart string, registry string, username string, password string, version string, discordWebhook string) string {
return dag.
GhReusablePipelines().
PublishHelmChart(ctx, source, chart, registry, username, password, version, discordWebhook)
}@function
async def example(source: dagger.Directory, chart: str, registry: str, username: str, password: str, version: str, discord_webhook: str) -> str:
return await (
dag.gh_reusable_pipelines()
.publish_helm_chart(source, chart, registry, username, password, version, discord_webhook)
)@func()
async example(source: Directory, chart: string, registry: string, username: string, password: string, version: string, discordWebhook: string): Promise<string> {
return dag
.ghReusablePipelines()
.publishHelmChart(source, chart, registry, username, password, version, discordWebhook)
}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 ! | "" | No description provided |
| ghcrUsername | String ! | "" | No description provided |
| forcePush | Boolean ! | false | No description provided |
| dockerToken | String ! | "" | No description provided |
| ghcrToken | String ! | "" | No description provided |
| eventName | String ! | "" | No description provided |
| ref | String ! | "" | No description provided |
| refName | String ! | "" | No description provided |
| headRef | String ! | "" | No description provided |
| defaultBranch | String ! | "main" | No description provided |
| sha | String ! | "" | No description provided |
| runUrl | String ! | "" | No description provided |
| runNumber | String ! | "" | No description provided |
| prLabelsCsv | String ! | "" | No description provided |
| discordWebhook | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 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 boolean --docker-token string --ghcr-token string --event-name string --ref string --ref-name string --head-ref string --default-branch string --sha string --run-url string --run-number string --pr-labels-csv string --discord-webhook stringfunc (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, dockerToken string, ghcrToken string, eventName string, ref string, refName string, headRef string, defaultBranch string, sha string, runUrl string, runNumber string, prLabelsCsv string, discordWebhook string) string {
return dag.
GhReusablePipelines().
DockerRelease(ctx, source, image, context, dockerfile, target, platforms, tagsCsv, registriesCsv, semverPrefix, semverIncrement, prependTarget, canaryLabel, dockerhubUsername, ghcrUsername, forcePush, dockerToken, ghcrToken, eventName, ref, refName, headRef, defaultBranch, sha, runUrl, runNumber, prLabelsCsv, discordWebhook)
}@function
async def example(source: dagger.Directory, image: str, context: str, dockerfile: str, target: str, platforms: str, tags_csv: str, registries_csv: str, semver_prefix: str, semver_increment: str, prepend_target: bool, canary_label: str, dockerhub_username: str, ghcr_username: str, force_push: bool, docker_token: str, ghcr_token: str, event_name: str, ref: str, ref_name: str, head_ref: str, default_branch: str, sha: str, run_url: str, run_number: str, pr_labels_csv: str, discord_webhook: str) -> str:
return await (
dag.gh_reusable_pipelines()
.docker_release(source, image, context, dockerfile, target, platforms, tags_csv, registries_csv, semver_prefix, semver_increment, prepend_target, canary_label, dockerhub_username, ghcr_username, force_push, docker_token, ghcr_token, event_name, ref, ref_name, head_ref, default_branch, sha, run_url, run_number, pr_labels_csv, discord_webhook)
)@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, dockerToken: string, ghcrToken: string, eventName: string, ref: string, refName: string, headRef: string, defaultBranch: string, sha: string, runUrl: string, runNumber: string, prLabelsCsv: string, discordWebhook: string): Promise<string> {
return dag
.ghReusablePipelines()
.dockerRelease(source, image, context, dockerfile, target, platforms, tagsCsv, registriesCsv, semverPrefix, semverIncrement, prependTarget, canaryLabel, dockerhubUsername, ghcrUsername, forcePush, dockerToken, ghcrToken, eventName, ref, refName, headRef, defaultBranch, sha, runUrl, runNumber, prLabelsCsv, discordWebhook)
}ensureRepository() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| expectedRepository | String ! | - | No description provided |
| repository | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
ensure-repository --expected-repository string --repository stringfunc (m *MyModule) Example(ctx context.Context, expectedRepository string, repository string) string {
return dag.
GhReusablePipelines().
EnsureRepository(ctx, expectedRepository, repository)
}@function
async def example(expected_repository: str, repository: str) -> str:
return await (
dag.gh_reusable_pipelines()
.ensure_repository(expected_repository, repository)
)@func()
async example(expectedRepository: string, repository: string): Promise<string> {
return dag
.ghReusablePipelines()
.ensureRepository(expectedRepository, repository)
}graphqlQuery() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| query | String ! | - | No description provided |
| args | String ! | "" | No description provided |
| token | String ! | "" | No description provided |
| url | String ! | "https://api.github.com/graphql" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
graphql-query --query string --args string --token string --url stringfunc (m *MyModule) Example(ctx context.Context, query string, args string, token string, url string) string {
return dag.
GhReusablePipelines().
GraphqlQuery(ctx, query, args, token, url)
}@function
async def example(query: str, args: str, token: str, url: str) -> str:
return await (
dag.gh_reusable_pipelines()
.graphql_query(query, args, token, url)
)@func()
async example(query: string, args: string, token: string, url: string): Promise<string> {
return dag
.ghReusablePipelines()
.graphqlQuery(query, args, token, url)
}installCli() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repository | String ! | - | No description provided |
| asset | String ! | - | No description provided |
| version | String ! | "latest" | No description provided |
| overrideName | String ! | "" | No description provided |
| token | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
install-cli --repository string --asset string --version string --override-name string --token stringfunc (m *MyModule) Example(repository string, asset string, version string, overrideName string, token string) *dagger.Directory {
return dag.
GhReusablePipelines().
InstallCli(repository, asset, version, overrideName, token)
}@function
def example(repository: str, asset: str, version: str, override_name: str, token: str) -> dagger.Directory:
return (
dag.gh_reusable_pipelines()
.install_cli(repository, asset, version, override_name, token)
)@func()
example(repository: string, asset: string, version: string, overrideName: string, token: string): Directory {
return dag
.ghReusablePipelines()
.installCli(repository, asset, version, overrideName, token)
}setupRust() 🔗
Return Type
Container !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 |
| crates | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
setup-rust --source DIR_PATH --toolchain string --components string --target string --crates stringfunc (m *MyModule) Example(source *dagger.Directory, toolchain string, components string, target string, crates string) *dagger.Container {
return dag.
GhReusablePipelines().
SetupRust(source, toolchain, components, target, crates)
}@function
def example(source: dagger.Directory, toolchain: str, components: str, target: str, crates: str) -> dagger.Container:
return (
dag.gh_reusable_pipelines()
.setup_rust(source, toolchain, components, target, crates)
)@func()
example(source: Directory, toolchain: string, components: string, target: string, crates: string): Container {
return dag
.ghReusablePipelines()
.setupRust(source, toolchain, components, target, crates)
}setupNode() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| nodeVersion | String ! | "24" | No description provided |
| packageManager | String ! | "auto" | No description provided |
| installDeps | Boolean ! | false | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
setup-node --source DIR_PATH --node-version string --package-manager string --install-deps booleanfunc (m *MyModule) Example(source *dagger.Directory, nodeVersion string, packageManager string, installDeps bool) *dagger.Container {
return dag.
GhReusablePipelines().
SetupNode(source, nodeVersion, packageManager, installDeps)
}@function
def example(source: dagger.Directory, node_version: str, package_manager: str, install_deps: bool) -> dagger.Container:
return (
dag.gh_reusable_pipelines()
.setup_node(source, node_version, package_manager, install_deps)
)@func()
example(source: Directory, nodeVersion: string, packageManager: string, installDeps: boolean): Container {
return dag
.ghReusablePipelines()
.setupNode(source, nodeVersion, packageManager, installDeps)
}setupGo() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| goVersion | String ! | "1.24" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
setup-go --source DIR_PATH --go-version stringfunc (m *MyModule) Example(source *dagger.Directory, goVersion string) *dagger.Container {
return dag.
GhReusablePipelines().
SetupGo(source, goVersion)
}@function
def example(source: dagger.Directory, go_version: str) -> dagger.Container:
return (
dag.gh_reusable_pipelines()
.setup_go(source, go_version)
)@func()
example(source: Directory, goVersion: string): Container {
return dag
.ghReusablePipelines()
.setupGo(source, goVersion)
}setupRuby() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| rubyVersion | String ! | "3.4" | No description provided |
| bundleInstall | Boolean ! | false | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
setup-ruby --source DIR_PATH --ruby-version string --bundle-install booleanfunc (m *MyModule) Example(source *dagger.Directory, rubyVersion string, bundleInstall bool) *dagger.Container {
return dag.
GhReusablePipelines().
SetupRuby(source, rubyVersion, bundleInstall)
}@function
def example(source: dagger.Directory, ruby_version: str, bundle_install: bool) -> dagger.Container:
return (
dag.gh_reusable_pipelines()
.setup_ruby(source, ruby_version, bundle_install)
)@func()
example(source: Directory, rubyVersion: string, bundleInstall: boolean): Container {
return dag
.ghReusablePipelines()
.setupRuby(source, rubyVersion, bundleInstall)
}setupJava() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| javaVersion | String ! | "21" | No description provided |
| distribution | String ! | "temurin" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
setup-java --source DIR_PATH --java-version string --distribution stringfunc (m *MyModule) Example(source *dagger.Directory, javaVersion string, distribution string) *dagger.Container {
return dag.
GhReusablePipelines().
SetupJava(source, javaVersion, distribution)
}@function
def example(source: dagger.Directory, java_version: str, distribution: str) -> dagger.Container:
return (
dag.gh_reusable_pipelines()
.setup_java(source, java_version, distribution)
)@func()
example(source: Directory, javaVersion: string, distribution: string): Container {
return dag
.ghReusablePipelines()
.setupJava(source, javaVersion, distribution)
}setupTerraform() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| terraformVersion | String ! | "latest" | No description provided |
| useOpentofu | Boolean ! | false | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
setup-terraform --source DIR_PATH --terraform-version string --use-opentofu booleanfunc (m *MyModule) Example(source *dagger.Directory, terraformVersion string, useOpentofu bool) *dagger.Container {
return dag.
GhReusablePipelines().
SetupTerraform(source, terraformVersion, useOpentofu)
}@function
def example(source: dagger.Directory, terraform_version: str, use_opentofu: bool) -> dagger.Container:
return (
dag.gh_reusable_pipelines()
.setup_terraform(source, terraform_version, use_opentofu)
)@func()
example(source: Directory, terraformVersion: string, useOpentofu: boolean): Container {
return dag
.ghReusablePipelines()
.setupTerraform(source, terraformVersion, useOpentofu)
}setupPulumi() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| pulumiVersion | String ! | "latest" | No description provided |
| runtime | String ! | "nodejs" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
setup-pulumi --source DIR_PATH --pulumi-version string --runtime stringfunc (m *MyModule) Example(source *dagger.Directory, pulumiVersion string, runtime string) *dagger.Container {
return dag.
GhReusablePipelines().
SetupPulumi(source, pulumiVersion, runtime)
}@function
def example(source: dagger.Directory, pulumi_version: str, runtime: str) -> dagger.Container:
return (
dag.gh_reusable_pipelines()
.setup_pulumi(source, pulumi_version, runtime)
)@func()
example(source: Directory, pulumiVersion: string, runtime: string): Container {
return dag
.ghReusablePipelines()
.setupPulumi(source, pulumiVersion, runtime)
}rustBinaryRelease() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| binaryPathsCsv | String ! | - | No description provided |
| tag | String ! | - | No description provided |
| ghToken | String ! | - | No description provided |
| buildCommand | String ! | "cargo build --release" | No description provided |
| archiveName | String ! | "bundle.zip" | No description provided |
| toolchain | String ! | "stable" | No description provided |
| components | String ! | "clippy,rustfmt" | No description provided |
| repository | String ! | "" | No description provided |
| discordWebhook | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
rust-binary-release --source DIR_PATH --binary-paths-csv string --tag string --gh-token string --build-command string --archive-name string --toolchain string --components string --repository string --discord-webhook stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, binaryPathsCsv string, tag string, ghToken string, buildCommand string, archiveName string, toolchain string, components string, repository string, discordWebhook string) string {
return dag.
GhReusablePipelines().
RustBinaryRelease(ctx, source, binaryPathsCsv, tag, ghToken, buildCommand, archiveName, toolchain, components, repository, discordWebhook)
}@function
async def example(source: dagger.Directory, binary_paths_csv: str, tag: str, gh_token: str, build_command: str, archive_name: str, toolchain: str, components: str, repository: str, discord_webhook: str) -> str:
return await (
dag.gh_reusable_pipelines()
.rust_binary_release(source, binary_paths_csv, tag, gh_token, build_command, archive_name, toolchain, components, repository, discord_webhook)
)@func()
async example(source: Directory, binaryPathsCsv: string, tag: string, ghToken: string, buildCommand: string, archiveName: string, toolchain: string, components: string, repository: string, discordWebhook: string): Promise<string> {
return dag
.ghReusablePipelines()
.rustBinaryRelease(source, binaryPathsCsv, tag, ghToken, buildCommand, archiveName, toolchain, components, repository, discordWebhook)
}computeSemver() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tagsCsv | String ! | "" | No description provided |
| base | String ! | "" | No description provided |
| prefix | String ! | "" | No description provided |
| increment | String ! | "" | No description provided |
| prLabelsCsv | String ! | "" | No description provided |
| branchName | String ! | "" | No description provided |
| majorLabel | String ! | "major" | No description provided |
| minorLabel | String ! | "minor" | No description provided |
| patchLabel | String ! | "patch" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
compute-semver --tags-csv string --base string --prefix string --increment string --pr-labels-csv string --branch-name string --major-label string --minor-label string --patch-label stringfunc (m *MyModule) Example(ctx context.Context, tagsCsv string, base string, prefix string, increment string, prLabelsCsv string, branchName string, majorLabel string, minorLabel string, patchLabel string) string {
return dag.
GhReusablePipelines().
ComputeSemver(ctx, tagsCsv, base, prefix, increment, prLabelsCsv, branchName, majorLabel, minorLabel, patchLabel)
}@function
async def example(tags_csv: str, base: str, prefix: str, increment: str, pr_labels_csv: str, branch_name: str, major_label: str, minor_label: str, patch_label: str) -> str:
return await (
dag.gh_reusable_pipelines()
.compute_semver(tags_csv, base, prefix, increment, pr_labels_csv, branch_name, major_label, minor_label, patch_label)
)@func()
async example(tagsCsv: string, base: string, prefix: string, increment: string, prLabelsCsv: string, branchName: string, majorLabel: string, minorLabel: string, patchLabel: string): Promise<string> {
return dag
.ghReusablePipelines()
.computeSemver(tagsCsv, base, prefix, increment, prLabelsCsv, branchName, majorLabel, minorLabel, patchLabel)
}dockerFacts() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
| image | String ! | - | No description provided |
| version | String ! | - | No description provided |
| registries | String ! | "" | No description provided |
| dockerfile | String ! | "./Dockerfile" | No description provided |
| context | String ! | "." | No description provided |
| canaryLabel | String ! | "canary" | No description provided |
| forcePush | Boolean ! | false | No description provided |
| withLatest | Boolean ! | false | No description provided |
| target | String ! | "" | No description provided |
| prependTarget | Boolean ! | false | No description provided |
| eventName | String ! | "" | No description provided |
| ref | String ! | "" | No description provided |
| defaultBranch | String ! | "main" | No description provided |
| prLabelsCsv | String ! | "" | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
docker-facts --source DIR_PATH --image string --version string --registries string --dockerfile string --context string --canary-label string --force-push boolean --with-latest boolean --target string --prepend-target boolean --event-name string --ref string --default-branch string --pr-labels-csv stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, image string, version string, registries string, dockerfile string, context string, canaryLabel string, forcePush bool, withLatest bool, target string, prependTarget bool, eventName string, ref string, defaultBranch string, prLabelsCsv string) string {
return dag.
GhReusablePipelines().
DockerFacts(ctx, source, image, version, registries, dockerfile, context, canaryLabel, forcePush, withLatest, target, prependTarget, eventName, ref, defaultBranch, prLabelsCsv)
}@function
async def example(source: dagger.Directory, image: str, version: str, registries: str, dockerfile: str, context: str, canary_label: str, force_push: bool, with_latest: bool, target: str, prepend_target: bool, event_name: str, ref: str, default_branch: str, pr_labels_csv: str) -> str:
return await (
dag.gh_reusable_pipelines()
.docker_facts(source, image, version, registries, dockerfile, context, canary_label, force_push, with_latest, target, prepend_target, event_name, ref, default_branch, pr_labels_csv)
)@func()
async example(source: Directory, image: string, version: string, registries: string, dockerfile: string, context: string, canaryLabel: string, forcePush: boolean, withLatest: boolean, target: string, prependTarget: boolean, eventName: string, ref: string, defaultBranch: string, prLabelsCsv: string): Promise<string> {
return dag
.ghReusablePipelines()
.dockerFacts(source, image, version, registries, dockerfile, context, canaryLabel, forcePush, withLatest, target, prependTarget, eventName, ref, defaultBranch, prLabelsCsv)
}codeMatrix() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@7ea091d590aefb0cb9e56615d536674279e6b492 call \
code-matrix --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
GhReusablePipelines().
CodeMatrix(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.gh_reusable_pipelines()
.code_matrix(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.ghReusablePipelines()
.codeMatrix(source)
}