forked from Tecnativa/doodba-copier-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doodba.code-snippets
38 lines (38 loc) · 1.17 KB
/
doodba.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// See spec in https://code.visualstudio.com/docs/editor/userdefinedsnippets
{
// See https://github.com/Tecnativa/doodba#optodoocustomsrcreposyaml
"Git aggregator repo": {
"prefix": "repo",
"scope": "yaml",
"body": [
"${10:repo-name}:",
"\tdefaults:",
"\t\tdepth: \\$DEPTH_MERGE",
"\tremotes:",
"\t\t${40:origin}: ${30:https://github.com/${20:OCA}/${10}.git}",
"\ttarget: ${40} \\$ODOO_VERSION",
"\tmerges:",
"\t\t- ${40} \\$ODOO_VERSION",
"\t\t- ${40} refs/pull/${50:1234}/head"
],
"description": "Git-aggregator repo definition with merges"
},
// See https://github.com/Tecnativa/doodba-copier-template/blob/main/docs/faq.md#how-can-i-whitelist-a-service-and-allow-external-access-to-it
"Docker Whitelist Proxy": {
"prefix": "proxy",
"scope": "yaml",
"body": [
"${10:proxy_}:",
"\timage: ghcr.io/tecnativa/docker-whitelist:latest",
"\tnetworks:",
"\t\tdefault:",
"\t\t\taliases:",
"\t\t\t\t- ${20:URL}",
"\t\tpublic:",
"\tenvironment:",
"\t\tTARGET: ${20}",
"\t\tPRE_RESOLVE: 1"
],
"description": "Docker Whitelist definition"
}
}