# 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.beetmover
  - taskgraph.transforms.task

kind-dependencies:
  - module-build
  - signing
  - build-summary
  - nimbus-binaries-assemble
  - swift

task-defaults:
  run-on-tasks-for: []
  worker-type: beetmover
  worker:
    app-name: appservices
    max-run-time: 600
  alerts:
    email: a-s-ci-failures@mozilla.com

tasks:
  module:
    description: 'Publish release module {} to maven'
    from-deps:
      kinds: [module-build, signing, build-summary]
      group-by: component
      copy-attributes: true
    attributes:
      shipping_phase: ship
      nightly: true
    worker:
      action: push-to-maven

  nimbus:
    description: 'Publish {} to archive.mozilla.org'
    from-deps:
      kinds:
         - nimbus-binaries-assemble
         - swift
      copy-attributes: true
    attributes:
      build-type: "multi"
