50 Commits

Author SHA1 Message Date
Anton Medvedev
2ac3b89d97 Fix branch deploy for clone strategy 2023-03-01 21:12:14 +01:00
Jan Henk Hazelaar
3953996a30
Add remote option to update_code_strategy to rename remote to repository (#3466)
* Add 'remote' option to 'update_code_strategy'

* Using archive and then add remote to speedup deployment

* Optimize remote option and add documentation

* Optimize code

* Update docs

* Combine clone and remote to remove duplicate code

* Removed  option and merge functionality into  option

* Generate docs

* Generate docs
2023-02-10 23:51:27 +01:00
Marcus Jaschen
fe3874370b
Use correct Git ref spec when sub_directory is specified. (#3138)
* Use correct Git ref spec when `sub_directory` is specified.

The bug is described in detail in issue #3137.

* change variable name for sub-directory target (as requested in PR)
2022-05-24 21:36:50 +02:00
Anton Medvedev
208bf652fe Fix sub_directory update code strategy 2022-03-17 20:07:19 +01:00
matsn0w
baece5a6e3
Add an option to deploy only a sub-folder of the repository (#2821)
* add new sub_directory option

* update docs

* Update docs/recipe/deploy/update_code.md

Co-authored-by: Mario Ramundo <ramundomario@gmail.com>

Co-authored-by: Mario Ramundo <ramundomario@gmail.com>
Co-authored-by: Anton Medvedev <anton@medv.io>
2022-03-03 21:35:25 +01:00
Anton Medvedev
fb6f2154ef Use StrictHostKeyChecking=accept-new by default
I deleted code which was doing known_host population manually as it was buggy. The StrictHostKeyChecking=accept-new is exactly what we need.
2022-01-11 19:56:59 +01:00
Anton Medvedev
92a0eb6eb1 Refactor deploy:update_code to use target config 2021-11-21 11:20:42 +01:00
Jamie Burchell
272201779b
Fix minor typos in comments (#2744) 2021-11-10 22:36:20 +01:00
Anton Medvedev
a2b3da8c32 Add *s 2021-11-08 22:59:39 +01:00
Anton Medvedev
377b722611 Refactor checkout strategy to clone 2021-10-12 22:49:34 +02:00
Anton Medvedev
c40a1bc428 Update comment 2021-10-09 17:52:01 +02:00
Anton Medvedev
d2c4521b7a Add update_code_strategy 2021-09-24 16:16:15 +02:00
Anton Medvedev
46170352d4 Fix typo 2021-09-24 15:43:01 +02:00
Anton Medvedev
743e951082 Fix phpstan issue 2021-09-24 15:41:55 +02:00
Anton Medvedev
38fb8a753d Improve update_code.php ssh-keygen 2021-09-24 15:08:42 +02:00
Sander Toonen
1c8e23f00a
Use build in php-function to detect scheme, hostname and port in repo url (#2668)
* Use PHP biuld in funtion to detect scheme, hostname and port in repo url. refs #2667

* Updated changelog

* Add missing reference to changelog

* Unrelated issue, in order to make phpstan happy.
2021-09-23 18:58:57 +02:00
Anton Medvedev
d14c65c5dd Update release/rollback logic 2021-09-23 02:09:55 +02:00
Anton Medvedev
8c7ddf09c2 Use json instead of csv for releases metainfo 2021-09-20 00:32:34 +02:00
Alex Mayer
4bd32d8ead
Add Port When Running SSH Keyscan (#2551)
Fixes #2549

Co-authored-by: Fabian Blechschmidt <github@fabian-blechschmidt.de> (fixed conflicts, took to long to merge 🤷)
2021-08-20 11:17:01 +02:00
Marcel
f42e8faabd
Fix typo in comment (#2624)
The $bare variable points to ".dep/repo" and not ".git/repo"
2021-08-18 08:42:58 +02:00
Jeffrey Cafferata
a38a01615e
Update GIT remote origin (#2520)
Changed the way the GIT remote URL is fetched from the config.
2021-04-22 19:14:09 +02:00
Anton Medvedev
da8bb1adff Fix deploy:update_code
Now default target is HEAD, also better at switching repository url.
2021-04-18 13:54:31 +02:00
Anton Medvedev
19ce13a49b Fix revision saving on macos 2021-03-15 21:53:46 +01:00
Anton Medvedev
a200c1f9b0
Refactor deploy:update_code (#2461) 2021-03-15 01:35:06 +03:00
Anton Medvedev
47a193f9af
Add docgen 2020-10-02 01:11:13 +03:00
Anton Medvedev
29a643b623 v7 2020-05-16 18:02:17 +03:00
MoogyG
944f9bd582
Update update_code.php (#1958) 2020-04-20 23:56:31 +03:00
Anton Medvedev
85aae9fd68 Add deploy:check_remote task 2019-08-12 21:01:32 +03:00
Filippo Tessarotto
ec0e8c4fdc Git: add option to disable --dissociate flag on cloning (#1820) 2019-03-28 20:26:42 +07:00
Philipp Bräutigam
ad8e77579d Pass-through the quiet mode into the git commands for updating code (#1724)
* Enabled quiet mode for git if the verbosity level is 16 (QUIET)

* Updated CHANGELOG.md
2018-10-05 13:20:49 +07:00
Bernhard Zürn
26c3400d53 Added Exception Handling for perhaps missing config param (#1677)
* modify wrong ticket url (#1605)

* moving the name column to the last position to show full name

- bug fix: #1579

* add changelog

* update changelog.md

* update CHANGELOG.md

* modify command to find http user

* modify command to find http user

* modify wrong ticket url

* Remove magento:enable from Magento 2 recipe (#1606)

* Remove magento:enable from Magento 2 recipe

Magento's module states are stored in app/etc/config.php. This task
ignored that and blindly enabled all installed modules.

* Mention the removal of magento:enable in the changelog

* Extend deploy:cleanup with tty allocation when using sudo. (#1607)

* Added option cleanup_tty to allow allocation when using sudo

* Added comment for new option cleanup_tty to CHANGELOG

* Allow to set template path in Drupal 7 Settings recipe (#1613)

* Change drupal:settings task to drupal:configure

* Drupal 7 recipe - Set template file path

* Changelog

* Fixed once() tasks that where being run multiple times with ParallelE… (#1624)

* Fixed once() tasks that where being run multiple times with ParallelExecutor

* CHANGELOG: reorder issue

* Add test case for parallel deploy on ->once() task

* Added cleanup_use_sudo option to all commands in deploy:cleanup (#1632)

* Added option cleanup_tty to allow allocation when using sudo

* Added comment for new option cleanup_tty to CHANGELOG

* Added cleanup_use_sudo option to all commands in cleanup.php

* Fix return types for fluent interface (#1638)

* Add Prestashop 1.6 recipe (#1641)

* Add Prestashop 1.6 recipe

* Update changelog

* Sleep between process status calls to prevent 100% CPU usage (#1654)

* Sleep between progress status calls to prevent 100% CPU usage

* Add changelog entry

* Typo in changelog entry

* Update ParallelExecutor.php

* Update ParallelExecutor.php

* locate binary with less subprocesses (#1634)

* Set custom user for CI environments (#1659)

* Detect CI user

* Update CHANGELOG.md

* Update README.md

* [deploy:writable] chgrp doesn't need http_user (#1660)

* deploy:writable: chgrp doesn't need http_user

* Update CHANGELOG.md

* Add missing deploy:writable entries (#1662)

* Fix missing deploy:shared entries (#1664)

* Added Exception Handling for perhaps missing config param

Sometimes deploy_path is not set and a cd into this folder is not possible. But the deployment can be successful without it.

* style

* #1677 fixes according pull-request feedback

* #1677 code style fixes

* Added Exception Handling for perhaps missing config param

Sometimes deploy_path is not set and a cd into this folder is not possible. But the deployment can be successful without it.

* style

* #1677 fixes according pull-request feedback

* #1677 code style fixes

* Changelog entry for #1677

* Changelog entry for #1677

* Changelog entry for #1677
2018-09-05 19:03:04 +07:00
Michael Erkens
18ecbcac73
fix whitespace 2017-11-27 11:18:22 +01:00
Michael Erkens
fe4dd4201a
permission denied for the git working direcotry
When using the "become" option in a host configuration, the work directory for git needs to be accesible for that user.
For example, the homedirectory from the user I use to SSH isn't readable for the user I use to deploy, so it fails with a "permission denied".
(also make sure to set the HOME enviroment variable so the correct git configuation can be read if needed)
2017-11-27 11:14:30 +01:00
Anton Medvedev
c34de4b4f9 Apply fixes from StyleCI 2017-09-01 05:39:26 +00:00
Anton Medvedev
dc96a73747 Catch Throwable instead of RuntimeException in deploy:update_code 2017-09-01 12:39:09 +07:00
Mathias Brodala
86196c9cfb Make branch less delicious 2017-08-14 14:43:31 +02:00
Anton Medvedev
53b0261c1b Refactor run and runLocally return type 2017-08-12 18:06:21 +03:00
Anton Medvedev
0a91193597 Fix 🥑 2017-08-12 17:44:17 +03:00
Anton Medvedev
2e02e76e88 Fix 🥝 2017-08-12 17:32:45 +03:00
Anton Medvedev
9c30226351 Fix tests 2017-08-12 17:07:21 +03:00
Anton Medvedev
d0dc58ec70 Fix tests 2017-08-12 16:52:29 +03:00
Anton Medvedev
d288c2d7e2 Fix tests 2017-08-12 16:43:25 +03:00
Anton Medvedev
a78fcc0619 Fix tests 2017-08-12 16:34:08 +03:00
Anton Medvedev
b9a366a173 Refactored branch behavior and added deploy:info task 2017-08-12 11:56:35 +03:00
Rick Kuipers
c987bb88c6
Introduce git_recursive option 2017-08-10 10:22:57 +02:00
snowiow
1e8bad3022 merge upstream 2017-05-15 19:08:31 +02:00
snowiow
d373ba3f33 throw the correct exception on --reference fail 2017-05-15 17:29:58 +02:00
Anton Medvedev
a7f54ac65e Add previous_release var 2017-04-08 21:06:15 +07:00
Anton Medvedev
ace288978c Better tty 2017-03-12 23:04:48 +07:00
Anton Medvedev
c6dc030b30 Refactor common.php 2016-11-19 15:13:32 +07:00