@platforma-sdk/workflow-tengo 1.2.8 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tengo/lib/exec.lib.tengo +14 -0
- package/dist/tengo/lib/workdir.lib.tengo +1 -1
- package/dist/tengo/tpl/exec.create-python-venv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.aggregate.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-xsv-map.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.map-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
- package/package.json +2 -2
|
@@ -37,6 +37,7 @@ builder := func() {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
envs := {}
|
|
40
|
+
secrets := {} // { "env_name": "{secrets.secret_name}", ... }
|
|
40
41
|
queue := _HEAVY_QUEUE
|
|
41
42
|
cache := 0
|
|
42
43
|
nErrorLines := 200
|
|
@@ -130,6 +131,18 @@ builder := func() {
|
|
|
130
131
|
return self
|
|
131
132
|
},
|
|
132
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Set environment variable to value of given secret.
|
|
136
|
+
*
|
|
137
|
+
* @param secretName: string - name of secret to pass as environment variable.
|
|
138
|
+
* @param envName: string - name of environment variable to set with value of secret.
|
|
139
|
+
*/
|
|
140
|
+
secret: func(secretName, envName) {
|
|
141
|
+
validation.assertJsonSchema([secretName, envName], ["string"])
|
|
142
|
+
secrets[envName] = "{secrets."+secretName+"}"
|
|
143
|
+
return self
|
|
144
|
+
},
|
|
145
|
+
|
|
133
146
|
/**
|
|
134
147
|
* Sets the execution queue to the heavy queue.
|
|
135
148
|
*/
|
|
@@ -375,6 +388,7 @@ builder := func() {
|
|
|
375
388
|
cmd: cmd,
|
|
376
389
|
args: args,
|
|
377
390
|
envs: envs,
|
|
391
|
+
secrets: secrets,
|
|
378
392
|
queue: queue,
|
|
379
393
|
stdout: stdout,
|
|
380
394
|
stderr: stderr,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/workflow-tengo",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@milaboratories/software-pframes-conv": "^1.5.6"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@
|
|
22
|
+
"@platforma-sdk/tengo-builder": "^1.14.11"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"type-check": "pl-tengo check",
|