Skip to content

Commit

Permalink
deploy tag as app version
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed May 7, 2020
1 parent 5eb3858 commit c421917
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions luya.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,16 @@
// find file name
$file = (has('requireConfig')) ? get('requireConfig') : env('server.name');

$tag = input()->getOption('tag');
$envFilePhpContent = '<?php
// generated at: ' . date('r') . '
\$tag = \''.$tag.'\';
// check if new config.php file based config object exists.
\$config = @include(\'config.php\');
if (\$config) {
\$config->application([
\'version\' => \''.$tag.'\'
]);
return \$config->toArray([\''.$file.'\']);
}
// use old include structure
Expand Down

0 comments on commit c421917

Please sign in to comment.