.gitlab-ci.yml 605 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
stages:
  - build
  - deploy

Gen-VM:
  tags:
    - "virtualbox"
    - "ansible"
    - "vagrant"
  stage: build
Jean-Francois Rey's avatar
Jean-Francois Rey committed
11
  script:
Jean-Francois Rey's avatar
up CI    
Jean-Francois Rey committed
12
    - vboxmanage contorlvm poweroff windows10R4
Jean-Francois Rey's avatar
Jean-Francois Rey committed
13
    - vboxmanage unregistervm --delete windows10R4
Jean-Francois Rey's avatar
up CI    
Jean-Francois Rey committed
14
15
    - vagrant up
    - vagrant halt windows10R4
16
17
18
19
20
21
22
23

Deploy-VM:
  tags:
    - "virtualbox"
    - "ansible"
    - "vagrant"
  stage: deploy
  when: on_success
Jean-Francois Rey's avatar
Jean-Francois Rey committed
24
  script:
Jean-Francois Rey's avatar
update    
Jean-Francois Rey committed
25
26
    - vboxmanage unregistervm --delete win10R4
    - vboxmanage modifyvm windows10R4 --name win10R4
Jean-Francois Rey's avatar
Jean-Francois Rey committed
27
28
    - sudo vboxmanage unregistervm win10R4
    - sudo vboxmanage registervm "/home/VirtualBox VMs/win10R4/win10R4.vbox"