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:
    - vagrant destroy -f
preclean_wine-tibbo:
  tags:
    - vagrant
  stage: preclean
  when: always
  allow_failure: true
  script:
    - vagrant destroy -f
build_wine-tibbo:
  stage: build
  tags:
    - vagrant
    - develop19216822423
  script:
    - 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
    - if [ ! -f "OK" ]; then exit 1; fi
  after_script:
    - vagrant destroy -f