.gitlab-ci.yml 849 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. image: ghcr.io/siemens/kas/kas-isar:latest
  2. variables:
  3. GIT_STRATEGY: clone
  4. .common-build: &common-build
  5. stage: build
  6. before_script:
  7. - export http_proxy=$HTTP_PROXY
  8. - export https_proxy=$HTTPS_PROXY
  9. - export ftp_proxy=$FTP_PROXY
  10. - export no_proxy=$NO_PROXY
  11. artifacts:
  12. name: "logs-$CI_JOB_ID"
  13. paths:
  14. - build/tmp/work/*/*/*/temp
  15. when: on_failure
  16. expire_in: 1 week
  17. fast-ci:
  18. <<: *common-build
  19. except:
  20. - schedules
  21. script:
  22. - scripts/ci_build.sh -q -f
  23. full-ci:
  24. <<: *common-build
  25. only:
  26. - schedules
  27. script:
  28. - PREVIOUS_SHA="$(cat .CI_COMMIT_SHA || true)"
  29. - if [ "$CI_COMMIT_SHA" != "$PREVIOUS_SHA" ]; then
  30. echo "$CI_COMMIT_SHA" > .CI_COMMIT_SHA;
  31. scripts/ci_build.sh -q -c -r;
  32. fi
  33. cache:
  34. key: "$CI_COMMIT_REF_SLUG"
  35. paths:
  36. - .CI_COMMIT_SHA