Dagger
Search

gh-reusable-pipelines

No long description provided.

Installation

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

Entrypoint

Return Type
GhReusablePipelines
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@70f1035808bc3dd7ce784e5e17e5116cc11fab04 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@70f1035808bc3dd7ce784e5e17e5116cc11fab04 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)
}

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@70f1035808bc3dd7ce784e5e17e5116cc11fab04 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@70f1035808bc3dd7ce784e5e17e5116cc11fab04 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)
}

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 !"mbround18"No description provided
ghcrUsernameString !"mbround18"No description provided
forcePushBoolean !falseNo 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
Example
dagger -m github.com/mbround18/gh-reusable/packages/dagger-module@70f1035808bc3dd7ce784e5e17e5116cc11fab04 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 --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
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, eventName string, ref string, refName string, headRef string, defaultBranch string, sha string, runUrl string, runNumber string, prLabelsCsv string) string  {
	return dag.
			GhReusablePipelines().
			DockerRelease(ctx, source, image, context, dockerfile, target, platforms, tagsCsv, registriesCsv, semverPrefix, semverIncrement, prependTarget, canaryLabel, dockerhubUsername, ghcrUsername, forcePush, eventName, ref, refName, headRef, defaultBranch, sha, runUrl, runNumber, prLabelsCsv)
}
@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, 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) -> 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, event_name, ref, ref_name, head_ref, default_branch, sha, run_url, run_number, pr_labels_csv)
	)
@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, eventName: string, ref: string, refName: string, headRef: string, defaultBranch: string, sha: string, runUrl: string, runNumber: string, prLabelsCsv: string): Promise<string> {
	return dag
		.ghReusablePipelines()
		.dockerRelease(source, image, context, dockerfile, target, platforms, tagsCsv, registriesCsv, semverPrefix, semverIncrement, prependTarget, canaryLabel, dockerhubUsername, ghcrUsername, forcePush, eventName, ref, refName, headRef, defaultBranch, sha, runUrl, runNumber, prLabelsCsv)
}