dagger-module-ci-cd
No long description provided.
Installation
dagger install github.com/joebui/dagger-module-ci-cd@12491df845fc7f1b34cd74bdc90bc7b2f2ee23b2
Entrypoint
Return Type
DaggerModuleCiCd
Example
func (m *myModule) 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
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)
}
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
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)
}
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
func (m *myModule) example(ctx context.Context, githubToken string) string {
return dag.
DaggerModuleCiCd().
CiNodejsBuild(ctx, 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
func (m *myModule) example(ctx context.Context, githubToken string, ecrImgName string, gitCommitId string) string {
return dag.
DaggerModuleCiCd().
CiNodejsPublishImage(ctx, 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
func (m *myModule) example(ctx context.Context, bucketName string, appName string, env string) string {
return dag.
DaggerModuleCiCd().
CiServiceInfra(ctx, bucketName, appName, env)
}