codebuild.tf 920 B

1234567891011121314151617181920212223242526
  1. module "codebuild" {
  2. # https://github.com/weseek/terraform-aws-codebuild
  3. source = "github.com/weseek/terraform-aws-codebuild"
  4. name = "growi-official-image-builder"
  5. description = "The CodeBuild Project for GROWI official docker image"
  6. artifact_type = "NO_ARTIFACTS"
  7. source_type = "GITHUB"
  8. source_location = "https://github.com/weseek/growi.git"
  9. source_version = "refs/heads/support/build-with-codebuild"
  10. git_clone_depth = 1
  11. buildspec = "packages/app/docker/codebuild/buildspec/root.yml"
  12. # https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
  13. build_image = "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
  14. build_compute_type = "BUILD_GENERAL1_LARGE"
  15. privileged_mode = true
  16. cache_type = "LOCAL"
  17. local_cache_modes = ["LOCAL_DOCKER_LAYER_CACHE", "LOCAL_CUSTOM_CACHE"]
  18. }