Verified Commit 3b05a87a authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Split up virtualbox and qemu build into separate builds

parent 4af5a23e
......@@ -43,19 +43,32 @@ validate-packer:
- packer validate local.json
- packer validate cloud.json
build:
build:qemu:
stage: build
tags:
- secure-kvm
- secure-virtualbox
before_script:
- pacman -Syu --needed --noconfirm qemu-headless virtualbox packer
- pacman -Syu --needed --noconfirm packer qemu-headless
script:
packer build -parallel-builds=1 -var 'headless=true' -var 'write_zeroes=yes' -except=vmware-iso local.json
- packer build -parallel-builds=1 -var 'headless=true' -var 'write_zeroes=yes' -only=qemu local.json
artifacts:
paths:
- "*.box"
- "Arch-Linux-x86_64-qemu-*.box"
- "output-qemu"
expire_in: 2d
resource_group: vm-build
build:virtualbox:
stage: build
tags:
- secure-virtualbox
before_script:
- pacman -Syu --needed --noconfirm packer virtualbox
script:
- packer build -parallel-builds=1 -var 'headless=true' -var 'write_zeroes=yes' -only=virtualbox-iso local.json
artifacts:
paths:
- "Arch-Linux-x86_64-virtualbox-*.box"
- "output-virtualbox-iso"
expire_in: 2d
resource_group: vm-build
......@@ -68,7 +81,7 @@ publish:
before_script:
- pacman -Syu --needed --noconfirm qemu-headless virtualbox packer
script:
packer build -parallel-builds=1 -var "vagrant_cloud_token=$VAGRANT_API_TOKEN" -var 'headless=true' -var 'write_zeroes=yes' -except=vmware-iso vagrant.json
- packer build -parallel-builds=1 -var "vagrant_cloud_token=$VAGRANT_API_TOKEN" -var 'headless=true' -var 'write_zeroes=yes' -except=vmware-iso vagrant.json
only:
variables:
- $SCHEDULED_PUBLISH == "TRUE"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment