p≡p engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
769 B

  1. .ensure_docker: &ensure_docker
  2. # Check for docker and install if missing
  3. - 'which docker || ( sudo apt-get update -y && sudo apt-get install docker.io -y )'
  4. .ensure_rsync: &ensure_rsync
  5. # Install rsync and deps if missing
  6. - 'which ssh-agent || ( sudo apt-get update -y && sudo apt-get install openssh-client -y )'
  7. - 'which rsync || ( sudo apt-get update -y && sudo apt-get install rsync -y )'
  8. - 'which make || ( sudo apt-get update -y && sudo apt-get install make -y )'
  9. .standard_job:
  10. tags: [kvm]
  11. before_script:
  12. - *ensure_docker
  13. - *ensure_rsync
  14. .make_in_docker:
  15. extends: .standard_job
  16. script:
  17. - docker login -u ${DOCKER_REGISTRY_USER} -p ${DOCKER_REGISTRY_PASS} ${DOCKER_REGISTRY_HOST}
  18. - cd scripts/${CI_DISTRO_TARGET}
  19. - make