65 lines
1.4 KiB
JSON
65 lines
1.4 KiB
JSON
{
|
|
"module": "gitlab",
|
|
"version": "1",
|
|
"own-secrets": {
|
|
"token": "${dir:state}/token"
|
|
},
|
|
"config": {
|
|
"gitlab-url": {
|
|
"type": "string",
|
|
"description": "The address of the GitLab instance the gitlab tools call, as a URL such as https://gitlab.com, laid into the file as GITLAB_URL; unset, the code falls back to its environment and answers no calls until it is given.",
|
|
"trusted": true,
|
|
"default": ""
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": "."
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "file",
|
|
"path": "${dir:state}/config.json",
|
|
"merge": "json",
|
|
"template": "files/config.json",
|
|
"mode": "0600",
|
|
"takes-config": [
|
|
{
|
|
"key": "gitlab-url",
|
|
"as": "GITLAB_URL"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "typescript",
|
|
"entrypoints": [
|
|
"tools/index.js"
|
|
],
|
|
"loads": [
|
|
"tools/index.js"
|
|
],
|
|
"env": {
|
|
"MESH_GITLAB_TOKEN_FILE": "${dir:state}/token",
|
|
"MESH_GITLAB_CONFIG_FILE": "${dir:state}/config.json"
|
|
}
|
|
},
|
|
{
|
|
"name": "files",
|
|
"kind": "archive",
|
|
"from": "files"
|
|
}
|
|
]
|
|
}
|
|
}
|