diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c460a0..1dc0cb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md). +## 1.0.9 (7. May 2020) + ++ Automatically set the deploy tag as app version. + ## 1.0.8 (22. October 2019) + [#11](https://github.com/luyadev/luya-deployer/issues/11) Support new `config.php` file policy with `luya\Config` objects. diff --git a/luya.php b/luya.php index ed336dd..e5217db 100644 --- a/luya.php +++ b/luya.php @@ -64,11 +64,16 @@ // find file name $file = (has('requireConfig')) ? get('requireConfig') : env('server.name'); + $tag = input()->getOption('tag'); $envFilePhpContent = 'application([ + \'version\' => \''.$tag.'\' + ]); return \$config->toArray([\''.$file.'\']); } // use old include structure