THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

100 rindas
1.8KB

  1. stages:
  2. - lint
  3. - build
  4. variables:
  5. GIT_STRATEGY: fetch
  6. GIT_DEPTH: "0"
  7. default:
  8. # Make sure master points to the correct upstream commit
  9. before_script:
  10. - >
  11. git fetch $CI_MERGE_REQUEST_PROJECT_URL
  12. +refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:refs/heads/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
  13. lint:
  14. stage: lint
  15. image: alpinelinux/apkbuild-lint-tools:latest
  16. script:
  17. - changed-aports $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | lint
  18. allow_failure: true
  19. only:
  20. - merge_requests
  21. tags:
  22. - docker-alpine
  23. - x86_64
  24. .build:
  25. stage: build
  26. image: alpinelinux/alpine-gitlab-ci:latest
  27. script:
  28. - build.sh
  29. - cp -ar ~/packages packages/
  30. - mkdir -p keys
  31. - cp ~/.abuild/*.rsa.pub keys/
  32. artifacts:
  33. paths:
  34. - packages/
  35. - keys/
  36. expire_in: 1 day
  37. only:
  38. - merge_requests
  39. build-x86_64:
  40. extends: .build
  41. artifacts:
  42. name: MR${CI_MERGE_REQUEST_ID}_x86_64
  43. tags:
  44. - docker-alpine
  45. - ci-build
  46. - x86_64
  47. build-x86:
  48. extends: .build
  49. image:
  50. name: alpinelinux/alpine-gitlab-ci:latest-x86
  51. entrypoint: ["linux32", "sh", "-c"]
  52. artifacts:
  53. name: MR${CI_MERGE_REQUEST_ID}_x86
  54. tags:
  55. - docker-alpine
  56. - ci-build
  57. - x86
  58. build-s390x:
  59. extends: .build
  60. artifacts:
  61. name: MR${CI_MERGE_REQUEST_ID}_s390x
  62. tags:
  63. - docker-alpine
  64. - ci-build
  65. - s390x
  66. build-ppc64le:
  67. extends: .build
  68. artifacts:
  69. name: MR${CI_MERGE_REQUEST_ID}_ppc64le
  70. tags:
  71. - docker-alpine
  72. - ci-build
  73. - ppc64le
  74. build-aarch64:
  75. extends: .build
  76. artifacts:
  77. name: MR${CI_MERGE_REQUEST_ID}_aarch64
  78. tags:
  79. - docker-alpine
  80. - ci-build
  81. - aarch64
  82. build-armv7:
  83. extends: .build
  84. artifacts:
  85. name: MR${CI_MERGE_REQUEST_ID}_armv7
  86. tags:
  87. - docker-alpine
  88. - ci-build
  89. - armv7