Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.41 KiB
variables:
  PREFIX: henrietta/
  WWWPATH: /var/www/html/dev/vagrant

.job_template: &box_build_job
  stage: build
  tags:
    - vagrant
    - develop19216822423
  before_script:
    - ln -s .. $BOX/boxen
    - cp -f *.sh $BOX/
    - cp SkeletonVagrantfile $BOX/Vagrantfile
    - sed -ie 's/INSERTBOXNAME/$BOX/g' $BOX/Vagrantfile
    - cd $BOX; vagrant up
    - echo "\nwait\n" >> $BOX/build.sh
  script:
    - vagrant up
    - vagrant package --out $BOX.box
    - mv -f $BOX.box /var/www/html/dev/vagrant/$BOX.box
    - vagrant box remove $PREFIX/$BOX
    - vagrant box add $PREFIX/$BOX file://$WWWPATH/$BOX.box
    - cd ..
  after_script:
    - vagrant destroy -f
    - rm $BOX/boxen



build_cassandra:
  <<: *box_build_job
  variables:
    BOX: cassandra
  only:
    - master
    - /^cassandra\-(.*)$/


build_cass_zk_rmq:
  <<: *box_build_job
  variables:
    BOX: cass_zk_rmq
  only:
    - master
    - /^cass_zk_rmq\-(.*)$/


build_czr_pythons:
  <<: *box_build_job
  variables:
    BOX: czr_pythons
  only:
    - master
    - /^czr_pythons\-(.*)$/


build_czr_pythons_pg:
  <<: *box_build_job
  variables:
    BOX: czr_pythons_pg
  only:
    - master
    - /^czr_pythons_pg\-(.*)$/


build_nodejs4:
  <<: *box_build_job
  variables:
    BOX: nodejs4
  only: