diff --git a/make.py b/make.py
index 45908ca96023aa14c5ceb8dd6e76cd4c307a0053..2ae62b758e6306d8c96db241b5a781d73a34c55b 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