We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6609e17 commit 5e1b5d2Copy full SHA for 5e1b5d2
1 file changed
taskcluster/kinds/frontend/kind.yml
@@ -0,0 +1,32 @@
1
+loader: taskgraph.loader.transform:loader
2
+transforms:
3
+ - taskgraph.transforms.task_context
4
+ - taskgraph.transforms.run
5
+ - taskgraph.transforms.task
6
+kind-dependencies:
7
+ - docker-image
8
+tasks:
9
+ build:
10
+ description: Build frontend SPA
11
+ worker-type: b-linux
12
+ worker:
13
+ docker-image: { in-tree: node }
14
+ max-run-time: 3600
15
+ env:
16
+ BACKEND_URL: "{backend_url}"
17
+ artifacts:
18
+ - type: directory
19
+ name: public/frontend
20
+ path: /builds/worker/artifacts/frontend
21
+ run:
22
+ using: run-task
23
+ cwd: "{checkout}/frontend"
24
+ command: >-
25
+ npm install &&
26
+ npm run build &&
27
+ cp -r build /builds/worker/artifacts/frontend
28
+ task-context:
29
+ from-parameters:
30
+ backend_url: backend_url
31
+ substitution-fields:
32
+ - worker.env
0 commit comments