.gitlab-ci.yml 513 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
13
    - vagrant up
    - vagrant halt windows10R4
14
15
16
17
18
19
20
21

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