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

Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

95 linhas
1.7KB

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