Dagger
Search

dagger-module-ci-cd

No long description provided.

Installation

dagger install github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019

Entrypoint

Return Type
DaggerModuleCiCd
Example
dagger -m github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019 call \
func (m *myModule) example() *DaggerModuleCiCd  {
	return dag.
			DaggerModuleCiCd()
}
@function
def example() -> dag.DaggerModuleCiCd:
	return (
		dag.dagger_module_ci_cd()
	)
@func()
example(): DaggerModuleCiCd {
	return dag
		.daggerModuleCiCd()
}

Types

DaggerModuleCiCd 🔗

cdTerraformApply() 🔗

Run terraform apply to deploy and manage AWS resources.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
bucketNameString !-No description provided
appNameString !-No description provided
buildVersionString !-No description provided
tenantString !-No description provided
srcDirectory !-No description provided
sshHostDirDirectory !-No description provided
awsRegionString "us-west-2"No description provided
Example
dagger -m github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019 call \
 cd-terraform-apply --bucket-name string --app-name string --build-version string --tenant string --src DIR_PATH --ssh-host-dir DIR_PATH
func (m *myModule) example(ctx context.Context, bucketName string, appName string, buildVersion string, tenant string, src *Directory, sshHostDir *Directory) string  {
	return dag.
			DaggerModuleCiCd().
			CdTerraformApply(ctx, bucketName, appName, buildVersion, tenant, src, sshHostDir)
}
@function
async def example(bucket_name: str, app_name: str, build_version: str, tenant: str, src: dagger.Directory, ssh_host_dir: dagger.Directory) -> str:
	return await (
		dag.dagger_module_ci_cd()
		.cd_terraform_apply(bucket_name, app_name, build_version, tenant, src, ssh_host_dir)
	)
@func()
async example(bucketName: string, appName: string, buildVersion: string, tenant: string, src: Directory, sshHostDir: Directory): Promise<string> {
	return dag
		.daggerModuleCiCd()
		.cdTerraformApply(bucketName, appName, buildVersion, tenant, src, sshHostDir)
}

cdTerraformDestroy() 🔗

Run terraform destroy to clean service’s AWS resources.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
bucketNameString !-No description provided
appNameString !-No description provided
buildVersionString !-No description provided
tenantString !-No description provided
srcDirectory !-No description provided
sshHostDirDirectory !-No description provided
awsRegionString "us-west-2"No description provided
Example
dagger -m github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019 call \
 cd-terraform-destroy --bucket-name string --app-name string --build-version string --tenant string --src DIR_PATH --ssh-host-dir DIR_PATH
func (m *myModule) example(ctx context.Context, bucketName string, appName string, buildVersion string, tenant string, src *Directory, sshHostDir *Directory) string  {
	return dag.
			DaggerModuleCiCd().
			CdTerraformDestroy(ctx, bucketName, appName, buildVersion, tenant, src, sshHostDir)
}
@function
async def example(bucket_name: str, app_name: str, build_version: str, tenant: str, src: dagger.Directory, ssh_host_dir: dagger.Directory) -> str:
	return await (
		dag.dagger_module_ci_cd()
		.cd_terraform_destroy(bucket_name, app_name, build_version, tenant, src, ssh_host_dir)
	)
@func()
async example(bucketName: string, appName: string, buildVersion: string, tenant: string, src: Directory, sshHostDir: Directory): Promise<string> {
	return dag
		.daggerModuleCiCd()
		.cdTerraformDestroy(bucketName, appName, buildVersion, tenant, src, sshHostDir)
}

ciNodejsBuild() 🔗

Build nodejs service.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
githubTokenString !-No description provided
nodeVersionString "18"No description provided
srcDirectory !-No description provided
Example
dagger -m github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019 call \
 ci-nodejs-build --github-token string --src DIR_PATH
func (m *myModule) example(githubToken string, src *Directory) *Directory  {
	return dag.
			DaggerModuleCiCd().
			CiNodejsBuild(githubToken, src)
}
@function
def example(github_token: str, src: dagger.Directory) -> dagger.Directory:
	return (
		dag.dagger_module_ci_cd()
		.ci_nodejs_build(github_token, src)
	)
@func()
example(githubToken: string, src: Directory): Directory {
	return dag
		.daggerModuleCiCd()
		.ciNodejsBuild(githubToken, src)
}

ciServiceInfra() 🔗

Deploy shared service infra.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
bucketNameString !-No description provided
appNameString !-No description provided
envString !-No description provided
srcDirectory !-No description provided
Example
dagger -m github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019 call \
 ci-service-infra --bucket-name string --app-name string --env string --src DIR_PATH
func (m *myModule) example(ctx context.Context, bucketName string, appName string, env string, src *Directory) string  {
	return dag.
			DaggerModuleCiCd().
			CiServiceInfra(ctx, bucketName, appName, env, src)
}
@function
async def example(bucket_name: str, app_name: str, env: str, src: dagger.Directory) -> str:
	return await (
		dag.dagger_module_ci_cd()
		.ci_service_infra(bucket_name, app_name, env, src)
	)
@func()
async example(bucketName: string, appName: string, env: string, src: Directory): Promise<string> {
	return dag
		.daggerModuleCiCd()
		.ciServiceInfra(bucketName, appName, env, src)
}

ciNextjsBuild() 🔗

Build Next.js service.

Return Type
DaggerModuleCiCd !
Arguments
NameTypeDefault ValueDescription
githubTokenString !-No description provided
srcDirectory !-No description provided
nodeVersionString "18"No description provided
Example
dagger -m github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019 call \
 ci-nextjs-build --github-token string --src DIR_PATH
func (m *myModule) example(githubToken string, src *Directory) *DaggerModuleCiCd  {
	return dag.
			DaggerModuleCiCd().
			CiNextjsBuild(githubToken, src)
}
@function
def example(github_token: str, src: dagger.Directory) -> dag.DaggerModuleCiCd:
	return (
		dag.dagger_module_ci_cd()
		.ci_nextjs_build(github_token, src)
	)
@func()
example(githubToken: string, src: Directory): DaggerModuleCiCd {
	return dag
		.daggerModuleCiCd()
		.ciNextjsBuild(githubToken, src)
}

buildArtifactDir() 🔗

Get build artifactory directory for export.

Return Type
[Directory ! ] !
Example
dagger -m github.com/joebui/dagger-module-ci-cd@9bb970072728ce08f55860a900365773621f0019 call \
 build-artifact-dir
func (m *myModule) example() []*Directory  {
	return dag.
			DaggerModuleCiCd().
			BuildArtifactDir()
}
@function
def example() -> List[dagger.Directory]:
	return (
		dag.dagger_module_ci_cd()
		.build_artifact_dir()
	)
@func()
example(): Directory[] {
	return dag
		.daggerModuleCiCd()
		.buildArtifactDir()
}