gitlab-website.yml 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # gitlab-website.yml - Template CI/CD for gulp
  3. #
  4. # Inputs:
  5. # AWS_PROFILE ACCOUNT
  6. # PROFILE dev, release, prod, ...
  7. # WEB "web"
  8. # Outputs
  9. # build/web/ rendered pages
  10. #
  11. stages:
  12. - build
  13. - publish
  14. variables:
  15. WEB: "web"
  16. before_script:
  17. - set -e
  18. - ./configure --profile ${PROFILE}
  19. - eval $(paks/assist/secrets --env '' --profile "${PROFILE}" --aws-profile "${AWS_PROFILE}" get || echo exit 2)
  20. build-website:
  21. stage: build
  22. script:
  23. - ./paks/assist/build-parts --profile "${PROFILE}"
  24. artifacts:
  25. expire_in: 1 hour
  26. name: "rendered"
  27. paths:
  28. - ${WEB}/build/
  29. tags: ['macosx']
  30. publish-website:
  31. stage: publish
  32. script:
  33. - ./paks/assist/publish-parts --profile "${PROFILE}"
  34. only: [ 'tags', 'triggers', 'schedules', 'web', 'api' ]
  35. except:
  36. variables:
  37. - $DEPLOY =~ /no-deploy/
  38. tags: ['macosx']