Skip to content

Commit

Permalink
Merge branch 'release/3.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Aug 4, 2020
2 parents 60489d3 + 7c35b17 commit 76c6e6d
Show file tree
Hide file tree
Showing 31 changed files with 3,006 additions and 1,437 deletions.
29 changes: 29 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## 3.5.0 / 2020-08-04

### Fixed:

* Fix error in fallback version check, fixes #93

### New:

* Support for kubernetes, see documentation for more details. Some features still missing.
* Add describe subcommand for k8s
* Add logs subcommand for k8s
* Implement copy operation for k8s
* Add docs for kubernetes, fix test
* Allow the passing of a shellprovider to the scaffolder, reorganize code a little bit
* Add new k8s subcommand rollout, wait for deployments to finish before continuing
* Apply kubernetes config on deploy, even when scaffolder is not used, smaller code enhancements
* Rename deployCommand to applyCommand, add delete subcommand to k8s method
* Add new option `set` which allows to set a certain value in the configuration
* Provide host data and timestamp for scaffolder
* Add kubectl shellprovider, fix some bugs in K8sMethod
* Add k8s subcommands
* Implement initial deploy command for k8s
* Fix replacements in k8s
* Start working on k8s method, refactoring scaffold functionality into dedicated class with dedicated options class
* Bump elliptic from 6.5.2 to 6.5.3
* Bump lodash from 4.17.15 to 4.17.19
* Disable symfony recipes
* Show available update even on linux

## 3.4.9 / 2020-07-24

### Fixed:
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
"/app-scaffold.html",
"/app-create-destroy.html",
"/deploying-artifacts.html",
"/kubernetes.html",
"/local-overrides.html",
"/passwords.html",
"/contribute.html",
Expand Down
61 changes: 59 additions & 2 deletions docs/available-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,59 @@ hosts:
otherSettings...
```

## --variants

When using `blueprint`, you can run one command on multiple variants Just pass the `--variants`-flag with the wanted variants.

```
phab --config=my-blueprinted-config --variants=all about
phab --config=my-blueprinted-config --variants=de,it,fr about

```
This will prompt you with a list of commands which phab will run and ask for confirmation.
## -s / --set
You can override existing configuration using the dot notation and pass arbitrary values to phabalicious. Currently this is supported for host configs and dockerhost configs.
```yaml
hosts:
example:
host: example.test
port: 2222
...
```

To set a value from command line just pass it via the `--set`-option:

```bash
phab -cexample about --set host.host=overriden.test --set host.port=22
```

## -a / --arguments

Pass arbitrary arguments to scripts or other parts. Passed arguments can be consumed by scripts using `%arguments.<name>%` syntax. An example:

```
scripts:
test-arguments:
- echo %arguments.message%
```

```bash
phab -c<yourconfig> script test-arguments --arguments message="hello world"
```

## --offline

Prevent loading of additional data from remote. Helpful when you do not have an internet connection.

## --skip-cache

Phab caches remote files in `~/.phabalicious` and will use the cached version if it not older than an hour. If you think you get outdated information, pass this flag. It makes sure, that all remote data is read from remote.


## list

``` bash
Expand Down Expand Up @@ -637,18 +690,22 @@ phab npm yarn lint --config hostB

This will run a yarn command on the given configuration. Make sure, that your host config has `yarn` as a need a `yarnRootFolder` points to the folder containing package.json.

###variable:pull
##variable:pull

```bash
phab -chost variable:pull path/to/yaml.file
```

This will pull all variables listed in `path/to/yaml.file` and put the values into the yaml file and store it again. (Works currently only for D7). `variable:pull` and `variable:push` are usefull to retrieve a list of variables and restore them at some point in the future.

###variable:push
##variable:push

```bash
phab -chost variable:push path/to/yaml.file
```

This will push all variables listed in `path/to/yaml.file` and set them on the remote instance. (Works currently only for D7)

## k8s

Runs a command against a kubernetes cluster. More info [here](/kubernetes.html)
Loading

0 comments on commit 76c6e6d

Please sign in to comment.