Skip to content

Commit e5ebd70

Browse files
committed
Add deploy kind
1 parent 1640cdb commit e5ebd70

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

taskcluster/kinds/deploy/kind.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
loader: taskgraph.loader.transform:loader
2+
3+
transforms:
4+
- taskgraph.transforms.task_context
5+
- taskgraph.transforms.run
6+
- taskgraph.transforms.task
7+
8+
kind-dependencies:
9+
- build
10+
- frontend
11+
12+
task-defaults:
13+
run-on-tasks-for:
14+
- github-push
15+
run-on-git-branches:
16+
- testing
17+
- production
18+
worker-type: b-linux
19+
worker:
20+
docker-image: { in-tree: taskboot }
21+
max-run-time: 3600
22+
taskcluster-proxy: true
23+
env:
24+
TASKCLUSTER_SECRET: "project/relman/code-review/deploy-{channel}"
25+
scopes:
26+
- "secrets:get:project/relman/code-review/deploy-{channel}"
27+
run:
28+
using: run-task
29+
checkout: false
30+
task-context:
31+
from-parameters:
32+
channel: channel
33+
substitution-fields:
34+
- run.command
35+
- worker.env.TASKCLUSTER_SECRET
36+
- scopes
37+
38+
tasks:
39+
frontend:
40+
description: Deploy frontend SPA to S3
41+
run:
42+
command: >-
43+
taskboot deploy-s3
44+
--artifact-folder public/frontend
45+
--bucket relman-{channel}-code-review-{channel}-static-website
46+
dependencies:
47+
frontend: frontend-build
48+
49+
backend:
50+
description: Deploy backend to Heroku
51+
run:
52+
command: >-
53+
taskboot deploy-heroku
54+
--heroku-app code-review-backend-{channel}
55+
web:public/code-review-backend.tar.zst
56+
dependencies:
57+
build: build-backend
58+
59+
integration:
60+
description: Push integration Docker image
61+
run:
62+
command: taskboot push-artifact --artifact-filter public/code-review-integration.tar.zst
63+
dependencies:
64+
build: build-integration

0 commit comments

Comments
 (0)