Skip to content

Commit d260497

Browse files
authored
Release with code coverage (#335)
1 parent 2551637 commit d260497

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

.taskcluster.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tasks:
5151
else: 'https://api.coverage.moz.tools'
5252
else: 'https://api.coverage.moz.tools'
5353

54-
taskboot_image: "mozilla/taskboot:0.1.9"
54+
taskboot_image: "mozilla/taskboot:0.2.0"
5555
in:
5656
- taskId: {$eval: as_slugid("check_lint")}
5757
provisionerId: proj-relman
@@ -452,3 +452,40 @@ tasks:
452452
description: Deploy frontend build on environment
453453
454454
source: https://github.com/mozilla/code-coverage
455+
456+
- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
457+
then:
458+
$let:
459+
version: {$eval: 'head_branch[10:]'}
460+
in:
461+
taskId: {$eval: as_slugid("release")}
462+
dependencies:
463+
- {$eval: as_slugid("addon_build")}
464+
- {$eval: as_slugid("bot_build")}
465+
- {$eval: as_slugid("backend_build")}
466+
- {$eval: as_slugid("frontend_build")}
467+
- {$eval: as_slugid("report_check_tests")}
468+
provisionerId: proj-relman
469+
workerType: ci
470+
created: {$fromNow: ''}
471+
deadline: {$fromNow: '1 hour'}
472+
payload:
473+
features:
474+
# Needed for access to secret
475+
taskclusterProxy: true
476+
maxRunTime: 3600
477+
image: "${taskboot_image}"
478+
env:
479+
TASKCLUSTER_SECRET: "project/relman/code-coverage/release"
480+
command:
481+
- taskboot
482+
- github-release
483+
- mozilla/code-coverage
484+
- "${version}"
485+
scopes:
486+
- "secrets:get:project/relman/code-coverage/release"
487+
metadata:
488+
name: "Code Coverage Release ${version}"
489+
description: Code Coverage Github automated release
490+
491+
source: https://github.com/mozilla/code-coverage

0 commit comments

Comments
 (0)