blob: 777a2cc7d58531e9a22870015c137ac4f26564be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
image: python:2.7-slim
stages:
- 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
|