You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
3.8 KiB

  1. include:
  2. - '.gitlab-ci-files/common-prepare.yml'
  3. stages:
  4. - deps
  5. - build
  6. - build-docker
  7. - packages
  8. # Debian
  9. debian10:deps:
  10. extends: .make_in_docker
  11. stage: deps
  12. variables:
  13. MAKE_TARGET: "deps"
  14. CI_DISTRO_TARGET: "debian10"
  15. DEBIAN_FRONTEND: "noninteractive"
  16. rules:
  17. - changes:
  18. - DEPENDENCIES
  19. - scripts/debian10/deps.pEpEngine.debian10.Dockerfile
  20. - scripts/common/build_pEpEngine_deps.sh
  21. debian10:build:
  22. tags:
  23. - linux
  24. stage: build
  25. image: ${DOCKER_REGISTRY_HOST}/pep-debian10-engine-deps:latest
  26. script:
  27. - cd scripts/${CI_DISTRO_TARGET}
  28. - make ${MAKE_TARGET}
  29. variables:
  30. MAKE_TARGET: "build"
  31. CI_DISTRO_TARGET: "debian10"
  32. DEBIAN_FRONTEND: "noninteractive"
  33. rules:
  34. - if: '$CI_COMMIT_TAG !~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  35. debian10:tagged-build:
  36. tags:
  37. - linux
  38. stage: build
  39. image: ${DOCKER_REGISTRY_HOST}/pep-debian10-engine-deps:latest
  40. script:
  41. - cd scripts/${CI_DISTRO_TARGET}
  42. - make ${MAKE_TARGET}
  43. variables:
  44. MAKE_TARGET: "build"
  45. CI_DISTRO_TARGET: "debian10"
  46. DEBIAN_FRONTEND: "noninteractive"
  47. TAGGED_BUILD: "true"
  48. rules:
  49. - if: '$CI_COMMIT_TAG =~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  50. debian10:build-docker:
  51. extends: .make_in_docker
  52. stage: build-docker
  53. needs: ["debian10:build"]
  54. variables:
  55. MAKE_TARGET: "build-docker"
  56. CI_DISTRO_TARGET: "debian10"
  57. DEBIAN_FRONTEND: "noninteractive"
  58. rules:
  59. - if: '$CI_COMMIT_TAG !~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  60. debian10:tagged-build-docker:
  61. extends: .make_in_docker
  62. stage: build-docker
  63. needs: ["debian10:tagged-build"]
  64. variables:
  65. MAKE_TARGET: "build-docker"
  66. CI_DISTRO_TARGET: "debian10"
  67. DEBIAN_FRONTEND: "noninteractive"
  68. TAGGED_BUILD: "true"
  69. rules:
  70. - if: '$CI_COMMIT_TAG =~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  71. # CentOS
  72. centos8:deps:
  73. extends: .make_in_docker
  74. stage: deps
  75. variables:
  76. MAKE_TARGET: "deps"
  77. CI_DISTRO_TARGET: "centos8"
  78. rules:
  79. - changes:
  80. - DEPENDENCIES
  81. - scripts/centos8/deps.pEpEngine.centos8.Dockerfile
  82. - scripts/common/build_pEpEngine_deps.sh
  83. centos8:build:
  84. tags:
  85. - linux
  86. stage: build
  87. image: ${DOCKER_REGISTRY_HOST}/pep-centos8-engine-deps:latest
  88. script:
  89. - cd scripts/${CI_DISTRO_TARGET}
  90. - make ${MAKE_TARGET}
  91. variables:
  92. MAKE_TARGET: "build"
  93. CI_DISTRO_TARGET: "centos8"
  94. rules:
  95. - if: '$CI_COMMIT_TAG !~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  96. centos8:tagged-build:
  97. tags:
  98. - linux
  99. stage: build
  100. image: ${DOCKER_REGISTRY_HOST}/pep-centos8-engine-deps:latest
  101. script:
  102. - cd scripts/${CI_DISTRO_TARGET}
  103. - make ${MAKE_TARGET}
  104. variables:
  105. MAKE_TARGET: "build"
  106. CI_DISTRO_TARGET: "centos8"
  107. TAGGED_BUILD: "true"
  108. rules:
  109. - if: '$CI_COMMIT_TAG =~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  110. centos8:build-docker:
  111. extends: .make_in_docker
  112. stage: build-docker
  113. needs: ["centos8:build"]
  114. variables:
  115. MAKE_TARGET: "build-docker"
  116. CI_DISTRO_TARGET: "centos8"
  117. rules:
  118. - if: '$CI_COMMIT_TAG !~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  119. centos8:tagged-build-docker:
  120. extends: .make_in_docker
  121. stage: build-docker
  122. needs: ["centos8:tagged-build"]
  123. variables:
  124. MAKE_TARGET: "build-docker"
  125. CI_DISTRO_TARGET: "centos8"
  126. TAGGED_BUILD: "true"
  127. rules:
  128. - if: '$CI_COMMIT_TAG =~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  129. centos8:rpm:
  130. extends: .make_in_docker
  131. stage: packages
  132. needs: ["centos8:build-docker"]
  133. variables:
  134. MAKE_TARGET: "rpm"
  135. CI_DISTRO_TARGET: "centos8"
  136. rules:
  137. - if: '$CI_COMMIT_TAG !~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'
  138. centos8:rpm:tagged-build:
  139. extends: .upload_pkg
  140. stage: packages
  141. needs: ["centos8:tagged-build-docker"]
  142. variables:
  143. MAKE_TARGET: "rpm"
  144. CI_DISTRO_TARGET: "centos8"
  145. TAGGED_BUILD: "true"
  146. rules:
  147. - if: '$CI_COMMIT_TAG =~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'