test_build:
  steps:
    - link_package:
        source_project: deepin:Develop:dde
        source_package: %{SCM_REPOSITORY_NAME}
        target_project: deepin:CI

    - configure_repositories:
        project: deepin:CI
        repositories:
          - name: deepin_develop
            paths:
              - target_project: deepin:CI
                target_repository: deepin_develop
            architectures:
              - x86_64
              - aarch64

          - name: debian
            paths:
              - target_project: deepin:CI
                target_repository: debian_sid
            architectures:
              - x86_64

          - name: uos20
            paths:
              - target_project: deepin:CI
                target_repository: uos_standard
            architectures:
              - x86_64
              - aarch64

          - name: anolisOS
            paths:
              - target_project: deepin:CI
                target_repository: AnolisOS_8.8_repo
            architectures:
              - x86_64
              - aarch64

          - name: openEuler
            paths:
              - target_project: deepin:CI
                target_repository: openEuler_23.09_repo
            architectures:
              - x86_64
              - aarch64
  filters:
    event: pull_request

tag_build:
  steps:
    - trigger_services:
        project: deepin:Unstable:dde
        package: %{SCM_REPOSITORY_NAME}
    - trigger_services:
        project: linglong:CI:release
        package: %{SCM_REPOSITORY_NAME}
  filters:
    event: tag_push

commit_build:
  steps:
    - trigger_services:
        project: deepin:Develop:dde
        package: %{SCM_REPOSITORY_NAME}
    - trigger_services:
        project: linglong:CI:master
        package: %{SCM_REPOSITORY_NAME}
  filters:
    event: push
