Commit 27e87075 authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

add S3 storage of the vagrant box generated

parent b2d62df8
stages:
- build
- stock
- deploy
Gen-VM:
......@@ -20,13 +21,24 @@ Gen-VM:
paths:
- vagrantup.log
Stock-S3-box:
tags:
- "virtualbox"
- "ansible"
- "vagrant"
stage: stock
when: manual
script:
- vagrant package --base windows10R4 --output windows10R4_virtualbox.box
- s3cmd --access_key=$EC2_ACCESS_KEY --secret_key=$EC2_SECRET_KEY --host=$S3_HOST --host-bucket="%(bucket)s.$S3_HOST" --region="inra-tls" -v put windows10R4_virtualbox.box s3://gaev-stock/
Deploy-VM:
tags:
- "virtualbox"
- "ansible"
- "vagrant"
stage: deploy
when: on_success
when: manual
script:
- vboxmanage controlvm win10R4 poweroff || true
- vboxmanage unregistervm --delete win10R4 || 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