Dagger
Search

dagger-module-ci-cd

No long description provided.

Installation

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

Entrypoint

Return Type
DaggerModuleCiCd
Example
dagger -m github.com/joebui/dagger-module-ci-cd@c3fa79bbef90b9f3dc682b6f5741b4699f0c8284 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 🔗

cdTerraformDeploy() 🔗

Run terraform apply to deploy and manage AWS resources.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
s3BucketNameString !-No description provided
appNameString !-No description provided
buildVersionString !-No description provided
tenantString !-No description provided
srcDirectory !-No description provided
awsRegionString "us-west-2"No description provided
Example
dagger -m github.com/joebui/dagger-module-ci-cd@c3fa79bbef90b9f3dc682b6f5741b4699f0c8284 call \
 cd-terraform-deploy --s-3-bucket-name string --app-name string --build-version string --tenant string --src DIR_PATH
func (m *myModule) example(ctx context.Context, s3BucketName string, appName string, buildVersion string, tenant string, src *Directory) string  {
	return dag.
			DaggerModuleCiCd().
			CdTerraformDeploy(ctx, s3BucketName, appName, buildVersion, tenant, src)
}
@function
async def example(s3_bucket_name: str, app_name: str, build_version: str, tenant: str, src: dagger.Directory) -> str:
	return await (
		dag.dagger_module_ci_cd()
		.cd_terraform_deploy(s3_bucket_name, app_name, build_version, tenant, src)
	)
@func()
async example(s3BucketName: string, appName: string, buildVersion: string, tenant: string, src: Directory): Promise<string> {
	return dag
		.daggerModuleCiCd()
		.cdTerraformDeploy(s3BucketName, appName, buildVersion, tenant, src)
}

cdTerraformDestroy() 🔗

Run terraform destroy to clean service’s AWS resources.

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

ciNodejsBuild() 🔗

Build nodejs service.

Return Type
Boolean !
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@c3fa79bbef90b9f3dc682b6f5741b4699f0c8284 call \
 ci-nodejs-build --github-token string --src DIR_PATH
func (m *myModule) example(ctx context.Context, githubToken string, src *Directory) bool  {
	return dag.
			DaggerModuleCiCd().
			CiNodejsBuild(ctx, githubToken, src)
}
@function
async def example(github_token: str, src: dagger.Directory) -> bool:
	return await (
		dag.dagger_module_ci_cd()
		.ci_nodejs_build(github_token, src)
	)
@func()
async example(githubToken: string, src: Directory): Promise<boolean> {
	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@c3fa79bbef90b9f3dc682b6f5741b4699f0c8284 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)
}