# 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:
  - taskgraph.transforms.from_deps
  - app_services_taskgraph.transforms.deps_complete:alerts
  - app_services_taskgraph.transforms.signing
  - taskgraph.transforms.task

kind-dependencies:
  - module-build

tasks:
  module-build-signing:
    from-deps:
      group-by: component
      copy-attributes: true
    attributes:
      shipping_phase: promote
    run-on-tasks-for: [cron]
    description: 'Sign release module {}'
    worker-type: signing
    worker:
      cert:
        by-level:
          "3":
            release-signing
          default:
            dep-signing
    alerts:
      email: a-s-ci-failures@mozilla.com
