.gitlab-ci.yml 992 Bytes
Newer Older
James T. Lee's avatar
James T. Lee committed
1
2
3
4
5
---
variables:
  JOBS: 8

default:
James T. Lee's avatar
James T. Lee committed
6
  image: '${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_PLATFORM}'
James T. Lee's avatar
James T. Lee committed
7
  before_script:
8
    - 'buildah login --username "$CI_REGISTRY_USER" --password "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"'
James T. Lee's avatar
James T. Lee committed
9

10
'Build haswell':
James T. Lee's avatar
James T. Lee committed
11
12
13
  stage: 'build'
  tags: ['nest']
  script:
14
    - 'mkdir debug'
James T. Lee's avatar
James T. Lee committed
15
16
17
18
19
    - 'buildah bud --pull
                   --security-opt seccomp=unconfined
                   --build-arg STAGE1_TAG=haswell-server
                   -v "${PUPPET_CERTIFICATE}:/etc/puppetlabs/puppet/ssl/certs/ci.pem"
                   -v "${PUPPET_PRIVATE_KEY}:/etc/puppetlabs/puppet/ssl/private_keys/ci.pem"
20
                   -v "${PWD}/debug:/usr/lib/debug"
James T. Lee's avatar
James T. Lee committed
21
22
                   -v /nest:/nest
                   -t "${CI_REGISTRY_IMAGE}:haswell" .'
23
24
25
    - 'buildah bud --build-arg STAGE1_TAG=haswell-server -t "${CI_REGISTRY_IMAGE}/debug:haswell" -f Containerfile.debug .'
    - 'buildah push "${CI_REGISTRY_IMAGE}:haswell"'
    - 'buildah push "${CI_REGISTRY_IMAGE}/debug:haswell"'