Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.21 KiB
stages:
  - preclean
  - build
  - deploy
  - cleanup

deploy_wine-tibbo:
  stage: deploy
  tags:
    - vagrant
    - develop19216822423
  script:
    - vagrant box remove henrietta/wine-tibbo || true
    - vagrant box add henrietta/wine-tibbo file:///var/www/html/dev/vagrant/wine-tibbo.box
clean_wine-tibbo:
  tags:
    - vagrant
  stage: cleanup
  when: always
  allow_failure: true
  script:
    - cp -f SkeletonVagrantfile wine-tibbo/Vagrantfile
    - cd wine-tibbo
    - vagrant destroy -f
preclean_wine-tibbo:
  tags:
    - vagrant
  stage: preclean
  when: always
  allow_failure: true
  script:
    - cp -f SkeletonVagrantfile wine-tibbo/Vagrantfile
    - cd wine-tibbo
    - vagrant destroy -f    
build_wine-tibbo:
  stage: build
  tags:
    - vagrant
    - develop19216822423
  before_script:
    - cd wine-tibbo
  script:
    - cd $CI_PROJECT_DIR
    - cd wine-tibbo
    - vagrant up
    - rm -f /var/www/html/dev/vagrant/spwine-tibbo.box || true
    - vagrant package --out /var/www/html/dev/vagrant/spwine-tibbo.box
    - mv -f /var/www/html/dev/vagrant/spwine-tibbo.box /var/www/html/dev/vagrant/wine-tibbo.box
    - cd ..
  after_script:
    - cd $CI_PROJECT_DIR
    - cd wine-tibbo
    - vagrant destroy -f
    - cd ..