I am trying to automate the deployment of code from a private github repo using phing but having trouble trying to find something that works like an SVN export.
I have read a few post on git archive and git checkout-index but have struggled to get these working with github. I get the impression that they are keen for us to use the zip download as they can cache this etc.
I wouldn’t mind downloading the zip from github if there was a simple task in Phing to do this, a simple http task didn’t work as it’s over https and I guess some sort of authentication is needed first.
I managed to use gitclone task in Phing but the “.git” hidden folder is cloned too which is causing massive headaches…mainly because on subsequent builds I can’t delete the build folder as it suggests certain git files, namely *.idx or *.pack are in use.
Has anyone had any luck with phing and a private github repo?
Thanks
@AYK My bad, have recently been exploring deployment options and think will roll with Capistrano…
Anyway this was my build script I ended up using temporarily with people’s advice…
There are certain directories like docs I don’t want to go out so I copy files I want to deploy to “C:\app\deploy”
The problem I had with Phing is the scp part, needed ssh2 dll in PHP which I didn’t have nor did I want to spend time trying to compile source for it.
So all in all I achieved what I originally wanted with Phing but after spending an evening with Capistrano I’m converted
== build.xml ==