use git tag instead
This commit is contained in:
parent
d8a7adc48c
commit
a89c12563a
@ -24,11 +24,12 @@ if (!$git) {
|
|||||||
$v = new Crunchbutton_Deploy_Version([
|
$v = new Crunchbutton_Deploy_Version([
|
||||||
'id_deploy_server' => 23,
|
'id_deploy_server' => 23,
|
||||||
'date' => date('Y-m-d H:i:s'),
|
'date' => date('Y-m-d H:i:s'),
|
||||||
'status' => 'success',
|
'status' => 'new',
|
||||||
'version' => $git
|
'version' => $git
|
||||||
]);
|
]);
|
||||||
$v->save();
|
$v->save();
|
||||||
$build = $v->id_deploy_version;
|
//$build = $v->id_deploy_version;
|
||||||
|
$build = $git;
|
||||||
|
|
||||||
$files = [
|
$files = [
|
||||||
'/app/www/assets/css/bundle.css' => 'crunchbutton.'.$build.'.css',
|
'/app/www/assets/css/bundle.css' => 'crunchbutton.'.$build.'.css',
|
||||||
@ -51,5 +52,8 @@ foreach ($files as $src => $dst) {
|
|||||||
|
|
||||||
echo "Finished.\n\n";
|
echo "Finished.\n\n";
|
||||||
|
|
||||||
|
$v->status = 'success';
|
||||||
|
$v->save();
|
||||||
|
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user