image: python:2.7-slim stages: - build-1 - deploy-1 before_script: - export LC_ALL="C.UTF-8" - apt-get update -qq && apt-get install -y -qq git - export CI_YBD_BRANCH=`[[ "$CI_BUILD_REF_NAME" =~ ^staging/fromybd/ ]] && echo -b ${CI_BUILD_REF_NAME#staging/fromybd/}` - git clone https://gitlab.com/baserock/spec.git - git clone https://gitlab.com/baserock/ybd.git $CI_YBD_BRANCH - - cd ybd && git checkout ps-debug-install && ./install_dependencies.sh && cd .. - pip install -r spec/requirements.txt build-system-x86_64-chroot-build: stage: build-1 script: - ybd/ybd.py systems/build-system-x86_64-chroot.morph x86_64 build-system-x86_64-chroot-deploy: stage: deploy-1 dependencies: - build-system-x86_64-chroot-build script: - ybd/ybd.py clusters/build-system-x86_64-chroot-deploy.morph x86_64 artifacts: name: "${CI_BUILD_NAME}-${CI_BUILD_REF}" paths: - build-system-x86_64-chroot.tar