# 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.release:run_on_releases
    - gecko_taskgraph.transforms.release_flatpak_push:transforms
    - gecko_taskgraph.transforms.task:transforms

kind-dependencies:
    - repackage-flatpak

task-defaults:
    description: Pushes Flatpaks onto Flathub
    run-on-projects: []  # to make sure this never runs as part of CI
    run-on-releases: [release-rc]
    shipping-phase: ship  # ship-rc phase
    treeherder:
        kind: build
        tier: 2
        symbol: Flatpak(push-beta)
    worker-type: pushflatpak
    worker:
        implementation: push-flatpak
        channel: beta
    shipping-product: firefox
    flathub-scope: "flathub:firefox"

tasks:
    firefox-linux64-rc:
        treeherder:
            platform: linux64-shippable/opt
        dependencies:
            repackage-flatpak: repackage-flatpak-linux64-shippable/opt

    firefox-linux64-aarch64-rc:
        treeherder:
            platform: linux64-aarch64-shippable/opt
        dependencies:
            repackage-flatpak: repackage-flatpak-linux64-aarch64-shippable/opt
