diff --git a/README.md b/README.md index a992916a3a8d40f2582d14d918e8a868db5f54cb..7c098f3bf2f2673c49b9ec1233bec3edccceb344 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,7 @@ Click on particular boxes to see description and how to use: Boxes are automatically regenerated upon a push to master. If you want to develop a single box, just make a branch that starts with it's name and a dash, eg. **cassandra-something**. -Only it will then rebuild upon commit. \ No newline at end of file +Only it will then rebuild upon commit. + +Boxes, after being built, will be automatically available at +[http://dev.dms-serwis.com.pl/vagrant/](http://dev.dms-serwis.com.pl/vagrant/) \ No newline at end of file diff --git a/make.py b/make.py index 6788791ee7cd82b7bae43a14215b0348db6315d7..e539e6239f9168d77c87a7d07ae3b3599941e18f 100644 --- a/make.py +++ b/make.py @@ -13,6 +13,17 @@ if __name__ == '__main__': with open('.gitlab-ci.yml', 'wb') as ci: ci.write(b''' .job_template: &box_build_job + + +''') + + for box in boxes: + ci.write(b''' +build_%s: + <<: *box_build_job + only: + - master + - /^$BOX\-(.*)$/ stage: build before_script: - python make.py @@ -30,21 +41,7 @@ if __name__ == '__main__': - cd .. after_script: - vagrant destroy -f - -''') - - for box in boxes: - ci.write(b''' -build_%s: - <<: *box_build_job - variables: - BOX: "%s" - PREFIX: "henrietta/" - only: - - master - - /^%s\-(.*)$/ -''' % (box, box, box)) - +'''.replace('$BOX', box).replace('$PREFIX', 'henrietta/')) # Generate metadata for box in boxes: