Skip to content

Commit 5e1b5d2

Browse files
committed
Add frontend kind
1 parent 6609e17 commit 5e1b5d2

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)