914 Commits

Author SHA1 Message Date
Fritz Michael Gschwantner
fc9a2f13ad
Escape shell arguments correctly (#3603)
* escape shell argument depending on target operating system

* only escape unix style

* add some basic tests

* use json_encode in test

* correctly escape single quotes on the Linux command line
2024-02-11 23:01:51 +01:00
Anton Medvedev
5c62c45799
Revert "[TASK] Update TYPO3 recipe (#3674)" (#3723)
This reverts commit 73f2b531d71075f8523829ce0bbeeac4fb7e10fa.
2023-11-07 11:25:41 +01:00
Nicolas Lemoine
6ce69c5dd2
Fix test function (#3717)
Prevents line breaks that might be outputed in `run` return to break condition.
2023-10-27 14:31:41 +02:00
ochorocho
73f2b531d7
[TASK] Update TYPO3 recipe (#3674)
* [TASK] Update TYPO3 recipe

* Update recipe for TYPO3 v12
* Allow tasks to be added before or after a task in a given task group
* Allow to hide spinner to enable interactive tasks on be run on the remote server

Fixes #3667

* [TASK] Update docs

* [TASK] Remove deploy:vendors from recipe

We aim for minimal requirements on the target server.
Thus, all preparation should be done in CI.

* [TASK] Update comment
2023-09-13 13:35:34 +02:00
Corey Worrell
0cf5d18591
Filter out empty rsync command arguments (#3686)
Fixes #3683
2023-09-12 16:16:27 +02:00
Tobias Banaszak
e3faebe878
Fix output of elapsed time in section markers in gitlab (#3664)
According to this https://docs.gitlab.com/ee/ci/jobs/#custom-collapsible-section, we need to provide a unix timestamp in seconds, not in milliseconds.
2023-08-07 12:28:33 +02:00
Gregor Harlan
adbac8da4c
SshCommand: Fix host selection (#3649) 2023-07-23 22:52:34 +02:00
Alies Lapatsin
e048158ce4
Add an option to don't show banner after a task (#3578) 2023-04-21 15:04:01 +02:00
Anton Medvedev
d7afe5681d
Delete deploy.yaml 2023-04-05 10:09:24 +02:00
Anton Medvedev
2ecdff75d4 Remove comments 2023-04-04 12:37:32 +02:00
Anton Medvedev
785bada956 Add response in Httpie error 2023-04-04 12:34:29 +02:00
Peter Niederlag
91b73c05f6
fix: upload in yaml, allow array or string (#3551) (#3552) 2023-03-27 23:07:39 +02:00
Niklas Grießer
2df75b3b4c
Fix collapsible section's end markers in GitLab CI job output (#3545) 2023-03-22 19:00:39 +01:00
Wilfried Wolf
b565fdcc58
Adds Comments to magento2 recipe and modifies DocGen, to be able to explain artifact deployment (#3510)
* adds sticky to writable recipe

chgrp for all files, chmod g+rwxs for directories, chmod g+rw for files

* adds artifact deployment for magento2 recipe

* Updates Documentation

* removes mode that has been submitted in other MR

* adds divers discussion results from PR #3317

- uses contrib/cachetool
- removes task build:prepare-env
- comments additional_shared_files and additonal_shared_dirs
- avoids invoke()

* updates docs

* corrects additional shared

* expands DocGen for artifact deployment and adds documentation to the magento2 recipe

* corrects missing capital and typo

---------

Co-authored-by: Anton Medvedev <anton@medv.io>
2023-03-06 12:49:42 +01:00
Fabian Blechschmidt
75e5bc0cf1
Add PUT to Httpie.php (#3497)
* Update Httpie.php

Fixes #3496 - add PUT as static construct

* Update Httpie.php

Fix copy paste error on Httpie::delete()
2023-02-22 09:03:31 +01:00
blmage
ede6594c4c
Prevent type errors when supplied timeout options are not numeric (#3484) 2023-02-10 18:24:27 +01:00
Fabian Blechschmidt
5c3d4a17fb
Fixes #3472 (#3473)
* Fixes #3472

Add DELETE

* Update Httpie.php

improve error message for empty url on HTTPie
2023-01-31 22:46:00 +01:00
alexgit2k
a14383ba59
Show failed tasks for CI-environments (#3446)
* Call endTask on errors

* Handle errors at endTask
2023-01-13 11:55:07 +01:00
Anton Medvedev
f6e6dbde48 Add "new version" banners on release 2023-01-10 14:43:43 +01:00
Anton Medvedev
a809e82459 Revert "Fixes #3365 (#3400)"
This reverts commit 37142c6d6169f95bc1b3e3dba28b180e78576f8f.
2023-01-09 11:11:55 +01:00
Fabian Schmengler /
8888e5be86
Use include path when importing YAML files (#3377) 2023-01-08 21:32:35 +01:00
Fabian Blechschmidt
37142c6d61
Fixes #3365 (#3400)
In before and after the order of execution was reversed. This is counter intuitiv, therefore we change it.
2022-12-11 16:13:35 +01:00
Michael van Schaik
64408af36c
Add some notes on rsync --exclude option (#3350)
Fixes #3349
2022-10-17 09:11:02 +02:00
Anton Medvedev
6113e5e4f5 Improve docs 2022-09-12 12:53:42 +02:00
Anton Medvedev
4bdf95ebda Update docs 2022-09-12 12:29:44 +02:00
Anton Medvedev
1c897e587d New recipes docs intro 2022-09-12 11:40:11 +02:00
Anton Medvedev
9bd7b48b87 Remove validate config 2022-09-10 09:29:09 +02:00
Anton Medvedev
f0f8116c51 Fix banner 2022-09-09 19:33:48 +02:00
Anton Medvedev
5e5e978340 Use medv.io for deployer 2022-09-07 22:24:58 +02:00
Marcus Jaschen
717a1a047f
fix closing backtick for inline Markdown code (#3261) 2022-08-17 21:06:05 +02:00
Anton Medvedev
e80876d90d Update docs 2022-07-26 09:18:44 +02:00
Anton Medvedev
86c7ed6260 Update docs 2022-07-26 00:19:14 +02:00
Anton Medvedev
a12fdb6530 Update docs 2022-07-26 00:12:23 +02:00
kjkooistra-youwe
c36566145a
chore: add task name to replace exception message (#3184)
To clarify which task is causing the exception.
2022-07-04 15:23:23 +02:00
Anton Medvedev
a617327c5c Update ApiGen.php 2022-04-15 23:17:54 +02:00
Anton Medvedev
fadea6bcab Update init templates 2022-03-22 20:39:54 +01:00
Anton Medvedev
4c1a477b91 Refactor ssh client and host connection option
No more checking of running master ssh connection. This is done automatically by ssh.
No more pre-connect to hosts. On first execution of remote command, ssh connection with multiplexing will be established.
2022-03-22 14:55:43 +01:00
Anton Medvedev
ee0e879f6f Add completions 2022-03-18 23:34:03 +01:00
Anton Medvedev
5b39ae9e12 Remove autocomplete command in flavor of completion command 2022-03-18 23:33:41 +01:00
Anton Medvedev
025227885a Remove bin/changelog 2022-03-17 20:51:59 +01:00
Anton Medvedev
ec2ebfc537 Print "[localhost] run" instead of "[example.com] run locally" 2022-03-17 20:49:30 +01:00
Anton Medvedev
227f1926af Fix phpstan error 2022-03-17 20:38:01 +01:00
Anton Medvedev
d2daee27a2 Remove DEPLOYER_ROOT constant 2022-03-17 20:31:52 +01:00
Anton Medvedev
1f38994a00 Fix escapeshellarg in env_stringify: takes only string 2022-03-17 20:11:34 +01:00
Anton Medvedev
a11e7b70ab Port can be both: string & int 2022-03-17 20:09:53 +01:00
Anton Medvedev
5082861bb9 Fixes #2968
Add default host config values
2022-03-13 17:18:36 +01:00
Anton Medvedev
7360569cbf Fix code style 2022-03-13 00:41:32 +01:00
Mathieu I
9fbb270d99
Fix phpcs update (#3032)
* Bump slevomat/coding-standard from 6.4.1 to 7.0.19

Bumps [slevomat/coding-standard](https://github.com/slevomat/coding-standard) from 6.4.1 to 7.0.19.
- [Release notes](https://github.com/slevomat/coding-standard/releases)
- [Commits](https://github.com/slevomat/coding-standard/compare/6.4.1...7.0.19)

---
updated-dependencies:
- dependency-name: slevomat/coding-standard
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* style: fix all errors reported by phpcs

* style: remove typehints incompatible with php 7

* chore: update phpcs config

* chore: add missing docblocks

* style: remove useless ignore statements

* fix: remove extra mixed typehints

* fix: update api.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Imbert <mathieu.imbert@tracktik.com>
2022-03-13 00:28:16 +01:00
Anton Medvedev
019eec1398 Allow master server to perform large requests 2022-03-12 23:12:30 +01:00
Anton Medvedev
2d11878461 Enforce proper types from yaml recipes 2022-03-12 22:10:25 +01:00