Commit Graph

197 Commits

Author SHA1 Message Date
Андрей Колченко 4c719f5efd PHP 5.3 does not support "[]" brackets. 2014-11-05 15:37:07 +03:00
Андрей Колченко 642773b5af PSR-2 style. 2014-11-05 15:36:14 +03:00
Andrés Montañez 30a53fcfda Merge branch 'master' into develop 2014-11-01 19:48:31 -02:00
Andrés Montañez c34fa53af5 Fixes #121 2014-11-01 19:31:04 -02:00
Andrés Montañez 27a4da4115 Merge pull request #149 from gudron/relative_linking
Relative linking @ shared file task.
2014-11-01 18:27:10 -02:00
Andrés Montañez df632b3fe3 Tweak excludes files. 2014-11-01 18:15:39 -02:00
Andrés Montañez a71bd5fca0 Merge pull request #148 from gudron/exclude_from_file
Rsync , TarGz exclude from file
2014-11-01 18:08:08 -02:00
Alex V Kotelnikov 50e2d6eeb5 small fixes @ link shared files task. wrong constant value 2014-10-30 23:16:07 +04:00
Alex V Kotelnikov 0a14573126 relative linking @ Link shared files task. Added exclusion rules to symlinks creation. 2014-10-30 23:16:07 +04:00
Alex V Kotelnikov 6f551cabf0 added relative linking @ Link shared files task 2014-10-30 23:16:07 +04:00
Alex V Kotelnikov 95f09dc3c9 small fixes @ rsync and targz tasks 2014-10-30 12:31:05 +04:00
Alex V Kotelnikov a66478b3ab exclude from file added.
rebased by upstream
2014-10-29 23:16:52 +04:00
samuel4x4 308a67359c Add task for force updating a working copy
Downloads the latest from remote without trying to merge or rebase
anything. Resets the master branch to what you just fetched. Changes all
the files in your working tree to match the files in origin/master, so
if you have any local changes, they will be lost.
2014-10-29 04:59:58 +02:00
Andrés Montañez 74087c9dd9 Tweak 2014-10-11 18:02:16 -02:00
Andrés Montañez 92b22d52a3 Tweak GitRebase and Insight suggestions. 2014-10-11 17:55:08 -02:00
Andrés Montañez 2deaa27a2a Tweak clones. 2014-10-11 17:47:07 -02:00
Andrés Montañez 9653552be7 Text files should end with a newline character. 2014-10-11 15:07:36 -02:00
Andrés Montañez f20091afc6 Boolean and Null should be compared strictly. 2014-10-11 14:43:57 -02:00
Andrés Montañez 5d39e46d9e Code should not be duplicated 2014-10-11 14:36:22 -02:00
Ramūnas Dronga e0430cfb68 built-in task for doctrine migrations 2014-10-08 15:22:08 +03:00
boston b066368a50 SCM: Git clone performance
Via:
- http://stackoverflow.com/questions/1778088/how-to-clone-a-single-branch-in-git
- http://stackoverflow.com/questions/6941889/is-git-clone-depth-1-shallow-clone-more-useful-than-it-makes-out
- http://git-scm.com/docs/git-clone
2014-09-15 16:07:21 +06:00
Andrés Montañez 1573daa474 Merge pull request #107 from Landkeks/develop-rsync
Fix RsyncTask::excludes().
2014-08-25 14:11:20 -03:00
Andrés Montañez d4763da37b Manual merge for PR #108 2014-08-25 14:09:42 -03:00
Andrés Montañez c3204844ea Add possibility for defining the composer_cmd in the global config. 2014-08-25 14:05:01 -03:00
Kuba Turek 95ffed7e12 Add configurable composer_cmd parameter 2014-08-22 09:54:56 +02:00
Kuba Turek 48420c1c2a Rename composer_path into composer_cmd 2014-08-20 17:45:30 +02:00
Moritz Baumann 3a033b4514 Fix RsyncTask::excludes(). 2014-08-17 22:11:55 +02:00
Andrés Montañez 6196cda70b Issue #99 2014-08-07 16:32:42 -03:00
Andrés Montañez 825fc64b0a Issue #47
Movie cleanup of releases on release task.
2014-08-07 11:03:27 -03:00
Andrés Montañez 1bcaca36f0 Issue #62
Add strategy flags.
2014-08-07 10:49:44 -03:00
Andrés Montañez 9c0682d222 Tweak. 2014-08-07 10:29:49 -03:00
Andrés Montañez 846237fabb Tweaks. 2014-08-07 10:12:26 -03:00
Andrés Montañez 7e2d7d4e57 Issue #72
Add -h option to tar command deployment strategy.

     -h, --dereference
           follow symlinks; archive and dump the files they point to
2014-08-06 21:51:17 -03:00
Andrés Montañez ce0e707dc6 Support Composer and Symfony App paths. Issue #86
Also specify symfony version (2 o 3).
2014-08-06 17:26:16 -03:00
Andrés Montañez 5fb711593a Add flag --deleteCurrent to delete current release on rollback. Issue #93 2014-08-06 15:03:53 -03:00
Andrés Montañez 2e0c5130dd Fix rollback. 2014-08-06 14:53:42 -03:00
Andrés Montañez 724fc05b9e Tweaks. 2014-08-06 14:35:50 -03:00
Andrés Montañez ec2bb12bf4 Fixes and tweaks. 2014-08-06 14:17:26 -03:00
Andrés Montañez fddeebe59a PHPStorm refactoring. 2014-08-06 14:01:39 -03:00
Andrés Montañez 4c584b2634 Tweaks. 2014-08-06 14:00:11 -03:00
JoeSimsen 8b86243e34 Bugfix
Extract tar Gz Did not have a $command = in front of it, wich was
breaking the commits
2014-07-31 16:10:46 +02:00
JoeSimsen 82c5305137 Allow a release to be zipped
If you enable the parameter 'releases: compressreleases: true', every
release except the current wil be added to a tar.gz. This is to preserve
diskspace on the remote host.
2014-07-31 15:06:20 +02:00
Andrés Montañez 25de6b0a8f Merge (partial) PR #56 2014-07-30 21:49:41 -03:00
Andrés Montañez 9a58ce56f0 Resolve conflict for PR #61 2014-07-30 21:35:21 -03:00
Andrés Montañez 78379e866f Merge pull request #96 from elnebuloso/bugfix-tar-deployment
bugfix, deployment targz
2014-07-30 21:28:35 -03:00
Andrés Montañez bf902c9853 Merge pull request #95 from voukka/master
Many bug fixes. With this fixes I was able to test my own Tasks! :)
2014-07-30 21:28:09 -03:00
Andrés Montañez 003e36dc64 Merge pull request #87 from WouterSioen/git-rebase-with-releases
Make the git rebase strategy work with releases
2014-07-30 21:26:59 -03:00
elnebuloso b4ce85199d bugfix, deployment targz
- the created tar only includes relative from the defined from
- now it is possible to use absolute path in .mage/deployment/*.yaml from
2014-07-31 01:55:50 +02:00
Vladimir Grigor e7cad31681 fixed a bug: symlink config value was not respected 2014-07-28 13:58:14 +03:00
woutersioen 0ce94c3821 Also use common code in RsyncTask 2014-07-16 17:08:04 +02:00
woutersioen 980d209fb4 Refactor cleaning up releases to a common function. 2014-07-16 17:07:19 +02:00
woutersioen b869876c26 Refactor tar gz to reuse function. 2014-07-16 17:06:00 +02:00
woutersioen f7e2163fed Cleanup releases. 2014-07-16 17:04:23 +02:00
woutersioen 26bc4242d1 Revert excludes 2014-07-16 16:35:18 +02:00
woutersioen f2e01280a5 Fix excludes for releases 2014-07-16 16:32:29 +02:00
woutersioen 014d98bc96 Implement releases in git-rebase
Note: the parameter repository needs to be set to make this work.
2014-07-16 16:29:44 +02:00
woutersioen c7e1175e11 Make file locations work better from global install. 2014-07-16 15:52:23 +02:00
Benjamin Mermoz 35301cba8e Fix hard coded 'current' symlink path in RsyncTask 2014-06-17 10:26:32 +02:00
Andrés Montañez 49a7e0857a Missing use statement should be avoided #inslight 2014-06-13 16:25:24 -03:00
Andrés Montañez 1b2188f0b1 Tweaks. 2014-06-13 09:31:53 -03:00
Andrés Montañez d55637a120 Fix ApplyFaclsTask. 2014-06-12 18:24:40 -03:00
Andrés Montañez e01fbc6151 Review and rework Composer tasks. 2014-06-12 17:42:47 -03:00
Andrés Montañez a51056b9c1 Merge pull request #63 from oddnoc/remote-rsync
Add ability to use rsync rather than cp on remote
2014-06-12 17:29:17 -03:00
Andrés Montañez 9bcf8e063d Tweaks on FileSystem Tasks. 2014-06-12 17:25:50 -03:00
Andrés Montañez 4528788d49 Reorganize common Deployment code. 2014-06-12 17:12:30 -03:00
Andrés Montañez b174d04da2 Commented code should not be commited #inslight 2014-06-12 16:50:47 -03:00
Andrés Montañez d17dd0eb27 Code refactoring. 2014-06-12 16:45:40 -03:00
Andrés Montañez 66ea107229 Merge branch 'master' of https://github.com/andres-montanez/Magallanes
Conflicts:
	Mage/Task/Factory.php
2014-06-12 16:18:14 -03:00
Andrés Montañez 4e01cc3517 Tweaks and fixes. 2014-06-12 16:17:31 -03:00
Jan Malte Gerth dacfaa2c5e fixes #73 missing "Task" suffix for LinkSharedFiles 2014-06-11 17:35:40 +02:00
Ismael Ambrosi eee36a850a Fixed namespace for Filesystem tasks 2014-05-22 22:56:05 -03:00
Fred Condo 1f6da7f8fb Add ability to use rsync rather than cp on remote
This enables finer control (via excludes) when seeding the destination
directory for rsync. Because we know we have rsync available, we can use
rsync rather than cp by using configuration like this example:

	  strategy: rsync
	  rsync:
		copy: true
		copy_tool_rsync: true
		rsync_excludes: ["assets", "silverstripe-cache"]

The default tool remains cp, so this change is backward-compatible.
2014-05-16 12:31:36 -07:00
Andrés Montañez b98082b96f Merge pull request #60 from tonynelson19/patch-1
Only call chown on releases if there's a userGroup
2014-05-14 17:39:29 -07:00
hrakotobe 7ad5403c81 change setting name 2014-05-09 18:15:03 +02:00
hrakotobe 47b089cb3e force use of sh on remote server and make directory ownership check more portable 2014-05-09 17:53:35 +02:00
Tony Nelson ea9c83b07f Only call chown on releases if there's a userGroup 2014-05-08 15:41:05 -05:00
juanda 86ef278607 strategy git-rebase is enabled 2014-05-07 12:55:14 +02:00
Mario Mueller eefec4cbc0 Added three new tasks.
One task for generating the composer production autoloader, one
for linking shared files and folders into the release and
one to set filesystem acls while rolling out a new release.
2014-05-04 08:55:04 +02:00
Mario Mueller 4c3f50608e The git remote cache deployment task.
This tasks uses a remote checkout on the server to provide the release.
In our use case this remote cache resides in $to/$shared/git-remote-cache,
variable 'shared' is substituted with "shared" by default. At this time, the
remote cache is not build automatically, you need to provide a clean
checkout before you can start using it.
2014-05-02 16:43:31 +02:00
Andrés Montañez 4d45c30bd4 Merge pull request #49 from Osukaru/master
Added identity file option for ssh and scp commands
2014-04-26 13:20:48 -07:00
David Lin 59574711c1 Fixed a bug in the builtin ChangeBranchTask.php 2014-04-15 09:59:16 +10:00
Osukaru beb663e801 Added identity file option for ssh and scp commands 2014-04-07 12:20:41 +02:00
Andrés Montañez 5d03d945cb Issue #46 - Add post-release tasks on rollback 2014-03-16 18:42:29 -03:00
Andrés Montañez 7c883d2436 Tweaks for issue #45
- Issue #45 - Adds "ssh_needs_tty" which appends "-t" to the ssh.
- Issue #45 - Rsync is incremental if there are previous releases.
2014-03-16 18:21:42 -03:00
mikec e7d8d5ce68 Adds general.yml parameter "ssh_needs_tty" which appends "-t" to the ssh
command
Adds deployment parameter "rsync: { copy: yes }" which copies the prior
release then rsync's (to increase speed)
2014-01-28 21:43:43 -05:00
Andrés Montañez 5cc9c02c3e IonCube task cleanup. 2014-01-11 16:12:01 -02:00
Andrés Montañez b6e32215ee Merge pull request #33 from marl-scot/ioncube
Added first version of the IonCube encoder extension task
2014-01-11 10:02:52 -08:00
Andrés Montañez 72a1a19518 SensioLabs Inslights. Remove unused namespaces. 2013-12-19 16:12:51 -02:00
Andrés Montañez 0f17468553 Cleanup for SensioLabs Insights. 2013-12-19 15:37:26 -02:00
Andrés Montañez eecf9bf4ea Change Deploy Stages with Constants. 2013-12-15 17:11:53 -02:00
Andrés Montañez ceee587bb0 Fix typo in GitRebase Deploy strategy. 2013-12-08 20:17:45 -02:00
Bastian Guse 935e9bf896 remove tab set space 2013-11-25 11:01:22 +01:00
Bastian Guse 899809dc33 added missing exclude Files to TarGzTask 2013-11-25 10:51:38 +01:00
Matt Lowe f864fa7b8e updated sample config file at end of script 2013-11-22 13:06:31 +00:00
Matt Lowe 96981b72c7 Added method to allow checking the source code once IonCube has run for
any un-encoded/encrypted files.
This checks against an array of file extens (used mainly to exclude
images and javascript etc.)
It also checks against an array of paths/filenames.
These 2 should maybe be combined into a single array?
If any files are found to not be encoded and havnt been excluded, then
user is prompted to confirm they wish to proced.
This is designed as a last confirmation that you have encoded all the
files that you need, and are not about to push unsecured files to a
server.
2013-11-22 13:03:37 +00:00
Matt Lowe 5fe1fdc168 adding new 'check encryption' function, to check that all
files have been encrypted/encoded, and prompt user to confirm
if the deploy should continue if any files are found to
not be encoded.
TEST - DO NOT USE!
2013-11-21 14:11:45 +00:00
Matt Lowe 9282e770f4 Added first version of the IonCube encoder extension task
This allows you to encrypt a project prior to pushing it
to a server.
2013-11-16 16:36:46 +00:00
Andrés Montañez 7f6cd952df Issue #24. New Deployment Strategy for not Deploying. 2013-11-13 20:13:13 -02:00
Andrés Montañez d8961674d3 Experimental, git rebase deployment strategy. 2013-11-08 11:00:07 -02:00
Andrés Montañez fdc9f4e12e Make all Magento tasks to gues where they should run (local or remote). 2013-11-07 23:33:19 -02:00