# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: taskgraph.loader.transform:loader

transforms:
    - android_taskgraph.transforms.release_deps:transforms
    - taskgraph.transforms.notify:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - signing-apk

task-defaults:
    name: notify-release-drivers-promote
    description: Sends email to release-drivers telling release was promoted.
    shipping-phase: promote
    worker-type: succeed
    worker:
        implementation: succeed
    notifications:
        emails:
            by-level:
                '3': ["release-signoff@mozilla.org"]
                default: ["{config[params][owner]}"]

tasks:
    beta:
        attributes:
            release-type: beta
        notifications:
            subject: "Focus/Fenix {config[params][version]}-build{config[params][build_number]} is available at usual Taskcluster index"
    release:
        attributes:
            release-type: release
        notifications:
            subject: "Focus/Klar/Fenix {config[params][version]}-build{config[params][build_number]} are available at usual Taskcluster indices"
