.gitlab-ci.yml.bak 745 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. workflow:
  2. rules:
  3. - if: $CI_COMMIT_BRANCH
  4. variables:
  5. PIP_CACHE_DIR: '$CI_PROJECT_DIR/.cache/pip'
  6. GIT_STRATEGY: clone
  7. cache:
  8. key: $CI_COMMIT_SHORT_SHA
  9. paths:
  10. - _public/
  11. run:
  12. stage: build
  13. image: node:latest
  14. script:
  15. - npm i -g @adguard/hostlist-compiler
  16. - hostlist-compiler -c tools/hostscompilerconf.json
  17. -o _public/blockrules.txt
  18. - hostlist-compiler -c tools/noise.json -o _public/noise.txt
  19. pages:
  20. stage: deploy
  21. image: alpine:latest
  22. variables:
  23. GIT_STRATEGY: clone
  24. script:
  25. - mv _public public
  26. - ls -lha public/
  27. - head -n 15 public/blockrules.txt
  28. - head -n 15 public/noise.txt
  29. artifacts:
  30. paths:
  31. - public
  32. rules:
  33. - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH