gitlab-makeme.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # gitlab-makeme.yml - Template building with MakeMe
  3. #
  4. # Inputs:
  5. # AWS_PROFILE ACCOUNT
  6. # PROFILE dev, release, ...
  7. # Outputs
  8. # build/*/img/ built images
  9. #
  10. stages:
  11. - build
  12. - publish
  13. before_script:
  14. - set -e
  15. - ./configure --profile ${PROFILE}
  16. - eval $(paks/assist/secrets --env '' --profile "${PROFILE}" --aws-profile "${AWS_PROFILE}" get || echo exit 2)
  17. .build: &build
  18. stage: build
  19. script:
  20. - me build test package
  21. artifacts:
  22. name: "images"
  23. paths:
  24. - build/*/img/*-*-*.*
  25. .publish: &publish
  26. stage: publish
  27. script:
  28. - AWS_PROFILE="${AWS_PROFILE}" BUCKET="${BUCKET}" me publish
  29. only: [ 'tags', 'triggers', 'schedules', 'web', 'api' ]
  30. environment:
  31. name: ${PROFILE}
  32. url: https://www.embedthis.com/${CI_PROJECT_NAME}/download.html
  33. build-linux:
  34. extends: .build
  35. tags: ['linux']
  36. build-macosx:
  37. extends: .build
  38. tags: ['macosx']
  39. build-windows:
  40. extends: .build
  41. tags: ['windows']
  42. when: manual
  43. publish-linux:
  44. extends: .publish
  45. dependencies: ['build-linux']
  46. tags: ['linux']
  47. except:
  48. variables:
  49. - $DEPLOY =~ /no-deploy/
  50. publish-macosx:
  51. extends: .publish
  52. dependencies: ['build-macosx']
  53. tags: ['macosx']
  54. except:
  55. variables:
  56. - $DEPLOY =~ /no-deploy/
  57. publish-windows:
  58. extends: .publish
  59. dependencies: ['build-windows']
  60. tags: ['windows']
  61. except:
  62. variables:
  63. - $DEPLOY =~ /no-deploy/
  64. when: manual