UNCLASSIFIED

.gitlab-ci.yml 839 Bytes
Newer Older
1 2
image: registry.dso.mil/ironbank-tools/ironbank-pipeline/ib-pipeline-image:0.1
stages:
ariel.shnitzer's avatar
ariel.shnitzer committed
3 4 5
  - parse-repo-map
  - update-local-repo-map
  - update-remote-repo-map
Kenneth Maguire's avatar
Kenneth Maguire committed
6
parse:
ariel.shnitzer's avatar
ariel.shnitzer committed
7
  stage: parse-repo-map
8
  script:
Kenneth Maguire's avatar
Kenneth Maguire committed
9
    - mkdir repo_maps
Kenneth Maguire's avatar
Kenneth Maguire committed
10 11 12 13
    - python3 parse.py
  artifacts:
    when: always
    paths:
14
      - "repo_maps/"
Kenneth Maguire's avatar
Kenneth Maguire committed
15 16
      - "all_repo_maps.txt"
      - "all_resources.txt"
David Freeman's avatar
David Freeman committed
17
      - "unapproved_builds.json"
Kenneth Maguire's avatar
Kenneth Maguire committed
18
    expire_in: 1 day
ariel.shnitzer's avatar
ariel.shnitzer committed
19 20
update-local:
  stage: update-local-repo-map
21 22 23
  dependencies:
    - parse
  script:
24
    - python3 update_local.py
25 26 27
  artifacts:
    when: always
    paths:
28 29
      - "repo_maps/"
      - "updated_unapproved_builds.json"
30 31
    expire_in: 7 days
  allow_failure: false
ariel.shnitzer's avatar
ariel.shnitzer committed
32 33
update-remote:
  stage: update-remote-repo-map
Kenneth Maguire's avatar
Kenneth Maguire committed
34
  dependencies:
ariel.shnitzer's avatar
ariel.shnitzer committed
35
    - update-local
Kenneth Maguire's avatar
Kenneth Maguire committed
36
  script:
37
    - python3 update_remote.py
Kenneth Maguire's avatar
Kenneth Maguire committed
38 39
  when: manual
  allow_failure: false