From 3b35491898edc1c14684d94c7f05b12b88be4d28 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Sat, 25 Mar 2017 12:30:13 +0100
Subject: [PATCH] meta

---
 make.py | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/make.py b/make.py
index 45908ca..2ae62b7 100644
--- a/make.py
+++ b/make.py
@@ -15,6 +15,21 @@ if __name__ == '__main__':
     if len(sys.argv) == 1:
         # Generate Gitlab CI file
         with open('.gitlab-ci.yml', 'wb') as ci:
+            ci.write('''
+stages:
+  - build
+  - deploy
+deploy_localhost:
+  stage: deploy
+  environment:
+    name: local
+    url: http://dev.dms-serwis.com.pl
+  script:''')
+            for box in boxes:
+                ci.write('''
+    - vagrant box remove $PREFIX/$BOX
+    - vagrant box add $PREFIX/$BOX file:///var/www/html/dev/vagrant/$BOX.box
+''')
             for box in boxes:
                 ci.write(b'''
 build_$BOX:
@@ -34,8 +49,6 @@ build_$BOX:
     - vagrant up
     - vagrant package --out $BOX.box
     - mv -f $BOX.box /var/www/html/dev/vagrant/$BOX.box
-    - vagrant box remove $PREFIX/$BOX
-    - vagrant box add $PREFIX/$BOX file:///var/www/html/dev/vagrant/$BOX.box
     - cd ..
   after_script:
     - vagrant destroy -f
-- 
GitLab