aboutsummaryrefslogtreecommitdiffstats
path: root/library/c/tvmauth/a.yaml
blob: 60e7208d3d17288b2184c8930348a0aab236b4aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
service: passport_infra
title: tvmauth (c)


arcanum:
  review:
     auto_assign: true

     groups:
        - name: backend-developers
          roles: developer

     rules:
        - reviewers:
            name: backend-developers
            ship: 2
            assign: 2

  auto_merge:
    requirements:
      - system: pciexpress
        type: PCI-DSS integrity


ci:
  release-title-source: flow
  autocheck:
    fast-targets:
      - library/c/tvmauth
    strong: true

  runtime:
    sandbox-owner: PASSPORT
  secret: sec-01ekz37bg804cbcsqeftv8v8ec

  releases:
    tvmauth-c-release:
      title: tvmauth-c
      flow: tvmauth-c-release-flow
      stages:
        - id: build
          title: Build
        - id: stable
          title: Stable
      branches:
        pattern: releases/passport/libtvmauth-${version}
        auto-create: true
      filters:
        - discovery: dir
          abs-paths:
            - library/c/tvmauth/**
            - library/cpp/tvmauth/**

  flows:
    tvmauth-c-release-flow:
      jobs:
        get_version:
          title: Получение версии из debian/changelog
          task: common/misc/run_command
          stage: build
          input:
            config:
              arc_mount_config:
                enabled: true
              cmd_line: |
                head -n 1 $ARCADIA_PATH/library/c/tvmauth/debians/debian/changelog \
                  | grep -Eo '\(.*\)' \
                  | sed 's/[\(|\)]//g' \
                  > $RESULT_RESOURCES_PATH/version
              result_output:
                - path: version

        build_deb:
          needs: get_version
          title: Сборка через ya package
          task: common/arcadia/ya_package_2
          stage: build
          input:
            packages: library/c/tvmauth/debians/tvmauth.json;library/c/tvmauth/debians/tvmauth_dev.json
            package_type: debian
            run_tests: true
            publish_to_mapping:
                library/c/tvmauth/debians/tvmauth.json: yandex-precise;yandex-trusty;yandex-xenial;yandex-bionic;yandex-focal
                library/c/tvmauth/debians/tvmauth_dev.json: yandex-precise;yandex-trusty;yandex-xenial;yandex-bionic;yandex-focal

        to_stable:
          stage: stable
          title: Катим в stable
          task: dummy
          needs:
            - build_deb
          manual:
            enabled: true

        conductor_stable_so:
          needs:
            - to_stable
          title: Выкладка через Conductor в stable
          task: projects/passport/create_conductor_ticket
          stage: stable
          input:
            ticket:
              branch: stable
              package: libtvmauth
              version: ${tasks.get_version.result_output[0].string[0]}
              comment: |
                CI: ${context.ci_job_url}

        conductor_stable_dev:
          needs:
            - to_stable
          title: Выкладка через Conductor в stable
          task: projects/passport/create_conductor_ticket
          stage: stable
          input:
            ticket:
              branch: stable
              package: libtvmauth-dev
              version: ${tasks.get_version.result_output[0].string[0]}
              comment: |
                CI: ${context.ci_job_url}

        wait_for_conductor_stable_so:
          needs: conductor_stable_so
          title: Ожидание выкладки через Conductor в stable
          task: projects/passport/wait_for_conductor_ticket
          stage: stable
          input:
            config:
              ticket_key: ${tasks.conductor_stable_so.result.key}
              time_to_wait: 172800

        wait_for_conductor_stable_dev:
          needs: conductor_stable_dev
          title: Ожидание выкладки через Conductor в stable
          task: projects/passport/wait_for_conductor_ticket
          stage: stable
          input:
            config:
              ticket_key: ${tasks.conductor_stable_dev.result.key}
              time_to_wait: 172800