dagger-module-ci-cd
No long description provided.
Installation
dagger install github.com/joebui/dagger-module-ci-cd@6fbab394c07f84b95bd986e1cf7c3e986951765f
Entrypoint
Return Type
DaggerModuleCiCd
Example
dagger -m github.com/joebui/dagger-module-ci-cd@6fbab394c07f84b95bd986e1cf7c3e986951765f 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
Name | Type | Default Value | Description |
---|---|---|---|
s3BucketName | String ! | - | No description provided |
appName | String ! | - | No description provided |
buildVersion | String ! | - | No description provided |
tenant | String ! | - | No description provided |
awsRegion | String | "us-west-2" | No description provided |
Example
dagger -m github.com/joebui/dagger-module-ci-cd@6fbab394c07f84b95bd986e1cf7c3e986951765f call \
cd-terraform-deploy --s-3-bucket-name string --app-name string --build-version string --tenant string
func (m *myModule) example(ctx context.Context, s3BucketName string, appName string, buildVersion string, tenant string) string {
return dag.
DaggerModuleCiCd().
CdTerraformDeploy(ctx, s3BucketName, appName, buildVersion, tenant)
}
@function
async def example(s3_bucket_name: str, app_name: str, build_version: str, tenant: str) -> str:
return await (
dag.dagger_module_ci_cd()
.cd_terraform_deploy(s3_bucket_name, app_name, build_version, tenant)
)
@func()
async example(s3BucketName: string, appName: string, buildVersion: string, tenant: string): Promise<string> {
return dag
.daggerModuleCiCd()
.cdTerraformDeploy(s3BucketName, appName, buildVersion, tenant)
}
cdTerraformDestroy() 🔗
Run terraform destroy to clean service’s AWS resources.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
s3BucketName | String ! | - | No description provided |
appName | String ! | - | No description provided |
buildVersion | String ! | - | No description provided |
tenant | String ! | - | No description provided |
awsRegion | String | "us-west-2" | No description provided |
Example
dagger -m github.com/joebui/dagger-module-ci-cd@6fbab394c07f84b95bd986e1cf7c3e986951765f call \
cd-terraform-destroy --s-3-bucket-name string --app-name string --build-version string --tenant string
func (m *myModule) example(ctx context.Context, s3BucketName string, appName string, buildVersion string, tenant string) string {
return dag.
DaggerModuleCiCd().
CdTerraformDestroy(ctx, s3BucketName, appName, buildVersion, tenant)
}
@function
async def example(s3_bucket_name: str, app_name: str, build_version: str, tenant: str) -> str:
return await (
dag.dagger_module_ci_cd()
.cd_terraform_destroy(s3_bucket_name, app_name, build_version, tenant)
)
@func()
async example(s3BucketName: string, appName: string, buildVersion: string, tenant: string): Promise<string> {
return dag
.daggerModuleCiCd()
.cdTerraformDestroy(s3BucketName, appName, buildVersion, tenant)
}
ciNodejsBuild() 🔗
Build nodejs service.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
githubToken | String ! | - | No description provided |
nodeVersion | String | "18" | No description provided |
Example
dagger -m github.com/joebui/dagger-module-ci-cd@6fbab394c07f84b95bd986e1cf7c3e986951765f call \
ci-nodejs-build --github-token string
func (m *myModule) example(ctx context.Context, githubToken string) string {
return dag.
DaggerModuleCiCd().
CiNodejsBuild(ctx, githubToken)
}
@function
async def example(github_token: str) -> str:
return await (
dag.dagger_module_ci_cd()
.ci_nodejs_build(github_token)
)
@func()
async example(githubToken: string): Promise<string> {
return dag
.daggerModuleCiCd()
.ciNodejsBuild(githubToken)
}
ciNodejsPublishImage() 🔗
Publish image to artifactory.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
githubToken | String ! | - | No description provided |
ecrImgName | String ! | - | No description provided |
gitCommitId | String ! | - | No description provided |
Example
dagger -m github.com/joebui/dagger-module-ci-cd@6fbab394c07f84b95bd986e1cf7c3e986951765f call \
ci-nodejs-publish-image --github-token string --ecr-img-name string --git-commit-id string
func (m *myModule) example(ctx context.Context, githubToken string, ecrImgName string, gitCommitId string) string {
return dag.
DaggerModuleCiCd().
CiNodejsPublishImage(ctx, githubToken, ecrImgName, gitCommitId)
}
@function
async def example(github_token: str, ecr_img_name: str, git_commit_id: str) -> str:
return await (
dag.dagger_module_ci_cd()
.ci_nodejs_publish_image(github_token, ecr_img_name, git_commit_id)
)
@func()
async example(githubToken: string, ecrImgName: string, gitCommitId: string): Promise<string> {
return dag
.daggerModuleCiCd()
.ciNodejsPublishImage(githubToken, ecrImgName, gitCommitId)
}
ciServiceInfra() 🔗
Deploy service infra.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
bucketName | String ! | - | No description provided |
appName | String ! | - | No description provided |
env | String ! | - | No description provided |
Example
dagger -m github.com/joebui/dagger-module-ci-cd@6fbab394c07f84b95bd986e1cf7c3e986951765f call \
ci-service-infra --bucket-name string --app-name string --env string
func (m *myModule) example(ctx context.Context, bucketName string, appName string, env string) string {
return dag.
DaggerModuleCiCd().
CiServiceInfra(ctx, bucketName, appName, env)
}
@function
async def example(bucket_name: str, app_name: str, env: str) -> str:
return await (
dag.dagger_module_ci_cd()
.ci_service_infra(bucket_name, app_name, env)
)
@func()
async example(bucketName: string, appName: string, env: string): Promise<string> {
return dag
.daggerModuleCiCd()
.ciServiceInfra(bucketName, appName, env)
}