Yuki Takei 3 лет назад
Родитель
Сommit
296bdbb0f0

+ 1 - 0
packages/app/docker/codebuild/main.tf

@@ -113,6 +113,7 @@ resource "aws_codebuild_project" "growi-official-image-builder" {
     type = "GITHUB"
     location = "https://github.com/weseek/growi.git"
     git_clone_depth = 1
+    buildspec = "packages/app/docker/codebuild/buildspec.yml"
   }
   source_version = "refs/heads/support/build-with-codebuild"
 

+ 9 - 4
packages/app/docker/codebuild/terraform.tfstate

@@ -1,7 +1,7 @@
 {
   "version": 4,
   "terraform_version": "1.3.7",
-  "serial": 11,
+  "serial": 13,
   "lineage": "7413839f-c67c-02f5-4933-fcb84251bb29",
   "outputs": {},
   "resources": [
@@ -101,7 +101,7 @@
               {
                 "auth": [],
                 "build_status_config": [],
-                "buildspec": "",
+                "buildspec": "packages/app/docker/codebuild/buildspec.yml",
                 "git_clone_depth": 1,
                 "git_submodules_config": [],
                 "insecure_ssl": false,
@@ -138,7 +138,12 @@
             "description": "",
             "force_detach_policies": false,
             "id": "growi-official-image-builder",
-            "inline_policy": [],
+            "inline_policy": [
+              {
+                "name": "terraform-20230112185553389000000001",
+                "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Resource\": [\n        \"*\"\n      ],\n      \"Action\": [\n        \"logs:CreateLogGroup\",\n        \"logs:CreateLogStream\",\n        \"logs:PutLogEvents\"\n      ]\n    },\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:*\"\n      ],\n      \"Resource\": [\n        \"arn:aws:s3:::growi-official-image-builder-cache\",\n        \"arn:aws:s3:::growi-official-image-builder-cache/*\"\n      ]\n    },\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"codebuild:StartBuild\",\n        \"codebuild:StopBuild\",\n        \"codebuild:RetryBuild\",\n        \"codebuild:CreateReportGroup\",\n        \"codebuild:CreateReport\",\n        \"codebuild:UpdateReport\",\n        \"codebuild:BatchPutTestCases\",\n        \"codebuild:BatchPutCodeCoverages\"\n      ],\n      \"Resource\": [\n        \"*\"\n      ]\n    }\n  ]\n}\n"
+              }
+            ],
             "managed_policy_arns": [],
             "max_session_duration": 3600,
             "name": "growi-official-image-builder",
@@ -217,7 +222,7 @@
             "replication_configuration": [],
             "request_payer": "BucketOwner",
             "server_side_encryption_configuration": [],
-            "tags": null,
+            "tags": {},
             "tags_all": {},
             "timeouts": null,
             "versioning": [