Skip to content

Commit

Permalink
Add goModules (#4381)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdnbradford authored Jan 24, 2025
1 parent b4f1acc commit cfbf6ac
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/schemas/json/cloudbuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,13 @@
"description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.",
"markdownDescription": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked `FAILURE`."
},
"goModules": {
"description": "Allows you to upload non-container Go modules to Go repositories in Artifact Registry.",
"type": "array",
"items": {
"$ref": "#/definitions/GoModules"
}
},
"mavenArtifacts": {
"description": "Allows you to upload non-container Java artifacts to Maven repositories in Artifact Registry.",
"type": "array",
Expand Down Expand Up @@ -324,6 +331,45 @@
}
}
},
"GoModules": {
"description": "Allows you to upload non-container Go modules to Go repositories in Artifact Registry.",
"type": "object",
"additionalProperties": false,
"properties": {
"repositoryName": {
"description": "The name of your Go repository in Artifact Registry.",
"type": "string"
},
"repositoryLocation": {
"description": "The location for your repository in Artifact Registry.",
"type": "string"
},
"repositoryProject_id": {
"description": "The ID of the Google Cloud project that contains your Artifact Registry Go repository.",
"type": "string"
},
"sourcePath": {
"description": "The path to the go.mod file in the build's workspace.",
"type": "string"
},
"modulePath": {
"description": "The local directory that contains the Go module to upload. It is recommended to use an absolute path for the value.",
"type": "string"
},
"moduleVersion": {
"description": "The version of the Go module.",
"type": "string"
}
},
"required": [
"repositoryName",
"repositoryLocation",
"repositoryProject_id",
"sourcePath",
"modulePath",
"moduleVersion"
]
},
"MavenArtifacts": {
"description": "Allows you to upload non-container Java artifacts to Maven repositories in Artifact Registry.",
"type": "object",
Expand Down

0 comments on commit cfbf6ac

Please sign in to comment.