mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
remove github events for now
This commit is contained in:
parent
c41bc8dac2
commit
775ee5d27a
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Models;
|
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
|
|
||||||
class GithubEventsApplications extends Model
|
|
||||||
{
|
|
||||||
protected $fillable = [
|
|
||||||
'delivery_guid',
|
|
||||||
'application_id',
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
|
|
||||||
return new class extends Migration
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the migrations.
|
|
||||||
*/
|
|
||||||
public function up(): void
|
|
||||||
{
|
|
||||||
Schema::create('github_events_applications', function (Blueprint $table) {
|
|
||||||
$table->id();
|
|
||||||
$table->string('delivery_guid');
|
|
||||||
$table->foreignId('application_id');
|
|
||||||
$table->timestamps();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reverse the migrations.
|
|
||||||
*/
|
|
||||||
public function down(): void
|
|
||||||
{
|
|
||||||
Schema::dropIfExists('github_events_applications');
|
|
||||||
}
|
|
||||||
};
|
|
@ -96,10 +96,6 @@
|
|||||||
$applications = Application::where('project_id', $id)->where('git_branch', $branch)->get();
|
$applications = Application::where('project_id', $id)->where('git_branch', $branch)->get();
|
||||||
foreach ($applications as $application) {
|
foreach ($applications as $application) {
|
||||||
if ($application->isDeployable()) {
|
if ($application->isDeployable()) {
|
||||||
GithubEventsApplications::create([
|
|
||||||
"delivery_guid" => $x_github_delivery,
|
|
||||||
"application_id" => $application->id
|
|
||||||
]);
|
|
||||||
$deployment_uuid = new Cuid2(7);
|
$deployment_uuid = new Cuid2(7);
|
||||||
dispatch(new DeployApplicationJob(
|
dispatch(new DeployApplicationJob(
|
||||||
deployment_uuid: $deployment_uuid,
|
deployment_uuid: $deployment_uuid,
|
||||||
|
Loading…
Reference in New Issue
Block a user