# 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:
    - fenix_taskgraph.transforms.release_deps:transforms
    - taskgraph.transforms.release_notifications:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - push-apk
    - github-release
    - version-bump
    - mark-as-shipped

primary-dependency: push-apk

group-by: build-type

only-for-build-types:
    - beta
    - release

task-defaults:
    attributes:
        shipping_phase: ship
    name: notify-release-drivers-ship
    description: Sends email to release-drivers telling release was shipped.
    worker-type: succeed
    worker:
        implementation: succeed
    notifications:
        subject: "{config[params][project]} {config[params][version]} build{config[params][build_number]} has been tagged in GitHub"
        emails:
            by-level:
                '3': ["release-signoff@mozilla.org"]
                default: ["{config[params][owner]}"]

tasks:
    beta:
        attributes:
            release-type: beta
    release:
        attributes:
            release-type: release
