summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 78d6c59131299c40066fd30034b2c4133b8d0ff7 (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
31
image: python:2.7-slim

before_script:
  - export LC_ALL="C.UTF-8"
  - apt-get update -qq && apt-get install -y -qq git 
  - git clone https://gitlab.com/baserock/ybd.git && cd ybd && git checkout tacgomes/artifact-splitting  && ./install_dependencies.sh && cd ..
  - echo "deb http://us.archive.ubuntu.com/ubuntu yakkety main universe" >> /etc/apt/sources.list
  - apt-get update -qq && apt-get install --force-yes -qq ostree gir1.2-ostree-1.0 python-dev python-gi
  - mkdir -p /ostree/repo
  - ostree init --repo=/ostree/repo

minimal-build-64:
  stage: build
  script:
  - ybd/ybd.py systems/minimal-system-x86_64-generic.morph x86_64

gnome-build-64:
  stage: build
  script:
  - ybd/ybd.py systems/gnome-system-x86_64.morph x86_64

minimal-system-x86_64-ostree-deploy:
  stage: deploy
  script:
  - ybd/ybd.py clusters/minimal-system-deploy-ostree.morph x86_64
  dependencies:
  - minimal-build-64
  artifacts:
    name: "${CI_BUILD_NAME}-${CI_BUILD_REF}"
    paths:
    - minimal-system-x86_64-ostree.tar