# 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:
    - gecko_taskgraph.transforms.maybe_release:transforms
    - gecko_taskgraph.transforms.task:transforms

task-defaults:
    description: Check recent releases and trigger a new ship-it phase if worthwhile.
    worker-type: shipit
    worker:
        implementation: shipit-maybe-release
    scopes:
        by-release-level:
            production:
                - project:releng:ship-it:server:production
                - project:releng:ship-it:action:create-new-release
            staging:
                - project:releng:ship-it:server:staging
                - project:releng:ship-it:action:create-new-release
    run-on-projects: []
    treeherder:
        symbol: Rel(maybe-release)
        tier: 1
        kind: build

tasks:
    firefox:
        name: maybe-release-firefox
        shipping-product: firefox
        worker:
            phase: ship_firefox
        treeherder:
            platform: firefox-release/opt

    devedition:
        name: maybe-release-devedition
        shipping-product: devedition
        worker:
            phase: ship_devedition
        treeherder:
            platform: devedition-release/opt
