Dagger
Search

gh-reusable-pipelines

No long description provided.

Installation

dagger install github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82

Entrypoint

Return Type
GhReusablePipelines
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 ci --source DIR_PATH
func (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
NameTypeDefault ValueDescription
labelsCsvString !""No description provided
requiredAnyCsvString !""No description provided
bannedCsvString !""No description provided
requiredAnyDescriptionString !"Select at least one required label"No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 enforce-pr-labels --labels-csv string --required-any-csv string --banned-csv string --required-any-description string
func (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
NameTypeDefault ValueDescription
webhookUrlString !-No description provided
titleString !-No description provided
descriptionString !""No description provided
colorInteger !5793266No description provided
fieldsJsonString !"[]"No description provided
urlString !""No description provided
footerString !"gh-reusable"No description provided
usernameString !"gh-reusable"No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 notify-discord --webhook-url string --title string --description string --color integer --fields-json string --url string --footer string --username string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
toolchainString !"stable"No description provided
componentsString !"clippy rustfmt"No description provided
targetString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 rust-build-and-test --source DIR_PATH --toolchain string --components string --target string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
semgrepConfigString !"auto"No description provided
includeGitleaksBoolean !trueNo description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 audit --source DIR_PATH --semgrep-config string --include-gitleaks boolean
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
registryString !"https://registry.npmjs.org"No description provided
tokenString !""No description provided
tagString !""No description provided
versionString !""No description provided
discordWebhookString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 publish-npm --source DIR_PATH --registry string --token string --tag string --version string --discord-webhook string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
registryString !"https://registry.npmjs.org"No description provided
tokenString !""No description provided
tagString !""No description provided
versionString !""No description provided
discordWebhookString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 publish-pnpm --source DIR_PATH --registry string --token string --tag string --version string --discord-webhook string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
registryString !"https://registry.npmjs.org"No description provided
tokenString !""No description provided
tagString !""No description provided
versionString !""No description provided
discordWebhookString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 publish-yarn --source DIR_PATH --registry string --token string --tag string --version string --discord-webhook string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
tokenString !""No description provided
versionString !""No description provided
registryString !"crates.io"No description provided
discordWebhookString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 publish-rust-crate --source DIR_PATH --token string --version string --registry string --discord-webhook string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
chartString !"."No description provided
registryString !"oci://registry-1.docker.io/helm-charts"No description provided
usernameString !""No description provided
passwordString !""No description provided
versionString !""No description provided
discordWebhookString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 publish-helm-chart --source DIR_PATH --chart string --registry string --username string --password string --version string --discord-webhook string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
imageString !-No description provided
contextString !"."No description provided
dockerfileString !"./Dockerfile"No description provided
targetString !""No description provided
platformsString !"linux/amd64"No description provided
tagsCsvString !""No description provided
registriesCsvString !"docker.io"No description provided
semverPrefixString !""No description provided
semverIncrementString !"patch"No description provided
prependTargetBoolean !falseNo description provided
canaryLabelString !"canary"No description provided
dockerhubUsernameString !""No description provided
ghcrUsernameString !""No description provided
forcePushBoolean !falseNo description provided
dockerTokenString !""No description provided
ghcrTokenString !""No description provided
eventNameString !""No description provided
refString !""No description provided
refNameString !""No description provided
headRefString !""No description provided
defaultBranchString !"main"No description provided
shaString !""No description provided
runUrlString !""No description provided
runNumberString !""No description provided
prLabelsCsvString !""No description provided
discordWebhookString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 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 string
func (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
NameTypeDefault ValueDescription
expectedRepositoryString !-No description provided
repositoryString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 ensure-repository --expected-repository string --repository string
func (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
NameTypeDefault ValueDescription
queryString !-No description provided
argsString !""No description provided
tokenString !""No description provided
urlString !"https://api.github.com/graphql"No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 graphql-query --query string --args string --token string --url string
func (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
NameTypeDefault ValueDescription
repositoryString !-No description provided
assetString !-No description provided
versionString !"latest"No description provided
overrideNameString !""No description provided
tokenString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 install-cli --repository string --asset string --version string --override-name string --token string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
toolchainString !"stable"No description provided
componentsString !"clippy rustfmt"No description provided
targetString !""No description provided
cratesString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 setup-rust --source DIR_PATH --toolchain string --components string --target string --crates string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
nodeVersionString !"24"No description provided
packageManagerString !"auto"No description provided
installDepsBoolean !falseNo description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 setup-node --source DIR_PATH --node-version string --package-manager string --install-deps boolean
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
goVersionString !"1.24"No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 setup-go --source DIR_PATH --go-version string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
rubyVersionString !"3.4"No description provided
bundleInstallBoolean !falseNo description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 setup-ruby --source DIR_PATH --ruby-version string --bundle-install boolean
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
javaVersionString !"21"No description provided
distributionString !"temurin"No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 setup-java --source DIR_PATH --java-version string --distribution string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
terraformVersionString !"latest"No description provided
useOpentofuBoolean !falseNo description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 setup-terraform --source DIR_PATH --terraform-version string --use-opentofu boolean
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
pulumiVersionString !"latest"No description provided
runtimeString !"nodejs"No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 setup-pulumi --source DIR_PATH --pulumi-version string --runtime string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
binaryPathsCsvString !-No description provided
tagString !-No description provided
ghTokenString !-No description provided
buildCommandString !"cargo build --release"No description provided
archiveNameString !"bundle.zip"No description provided
toolchainString !"stable"No description provided
componentsString !"clippy rustfmt"No description provided
repositoryString !""No description provided
discordWebhookString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 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 string
func (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
NameTypeDefault ValueDescription
tagsCsvString !""No description provided
baseString !""No description provided
prefixString !""No description provided
incrementString !""No description provided
prLabelsCsvString !""No description provided
branchNameString !""No description provided
majorLabelString !"major"No description provided
minorLabelString !"minor"No description provided
patchLabelString !"patch"No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 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 string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
imageString !-No description provided
versionString !-No description provided
registriesString !""No description provided
dockerfileString !"./Dockerfile"No description provided
contextString !"."No description provided
canaryLabelString !"canary"No description provided
forcePushBoolean !falseNo description provided
withLatestBoolean !falseNo description provided
targetString !""No description provided
prependTargetBoolean !falseNo description provided
eventNameString !""No description provided
refString !""No description provided
defaultBranchString !"main"No description provided
prLabelsCsvString !""No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 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 string
func (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
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@fc36cb2a56a8ec0250e19e23dea9fc2922bfae82 call \
 code-matrix --source DIR_PATH
func (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)
}