Implement Keystone environment deployments

This commit is contained in:
2026-05-13 16:11:23 +01:00
parent 65d3142d03
commit aa680b25fd
175 changed files with 10258 additions and 740 deletions

View File

@@ -1,11 +1,21 @@
<?php
use App\Http\Controllers\ApplicationController;
use App\Http\Controllers\EnvironmentAttachmentController;
use App\Http\Controllers\EnvironmentController;
use App\Http\Controllers\EnvironmentDeploymentController;
use App\Http\Controllers\EnvironmentMigrationController;
use App\Http\Controllers\EnvironmentVariableController;
use App\Http\Controllers\EnvironmentWorkerController;
use App\Http\Controllers\OnboardingController;
use App\Http\Controllers\OrganisationController;
use App\Http\Controllers\ProvisionCallback;
use App\Http\Controllers\ProvisionScript;
use App\Http\Controllers\RegistryController;
use App\Http\Controllers\ServerController;
use App\Http\Controllers\ServiceController;
use App\Http\Controllers\ServiceUpdateController;
use App\Http\Controllers\SourceProviderController;
use Illuminate\Support\Facades\Route;
Route::inertia('/', 'Welcome')->name('home');
@@ -19,6 +29,16 @@ Route::middleware(['auth', 'verified'])->group(function () {
Route::prefix('organisations/{organisation}')->group(function () {
Route::get('/', [OrganisationController::class, 'show'])->name('organisations.show');
Route::get('/onboarding', [OnboardingController::class, 'show'])->name('onboarding.show');
Route::resource('registries', RegistryController::class)
->only('create', 'store')
->name('create', 'registries.create')
->name('store', 'registries.store');
Route::resource('source-providers', SourceProviderController::class)
->only('create', 'store')
->name('create', 'source-providers.create')
->name('store', 'source-providers.store');
Route::resource('servers', ServerController::class)
->only('index', 'show', 'create', 'store')
@@ -29,15 +49,40 @@ Route::middleware(['auth', 'verified'])->group(function () {
Route::prefix('servers/{server}')->group(function () {
Route::resource('services', ServiceController::class)
->only('create', 'store')
->only('create', 'store', 'show', 'edit', 'update')
->name('create', 'services.create')
->name('store', 'services.store');
->name('store', 'services.store')
->name('show', 'services.show')
->name('edit', 'services.edit')
->name('update', 'services.update');
Route::get('services/{service}/updates/create', [ServiceUpdateController::class, 'create'])
->name('service-updates.create');
Route::post('services/{service}/updates', [ServiceUpdateController::class, 'store'])
->name('service-updates.store');
});
Route::resource('applications', ApplicationController::class)
->only('show', 'index')
->only('show', 'index', 'create', 'store')
->name('index', 'applications.index')
->name('show', 'applications.show');
Route::get('applications/{application}/environments/{environment}', [EnvironmentController::class, 'show'])
->name('environments.show');
Route::get('applications/{application}/environments/{environment}/attachments/create', [EnvironmentAttachmentController::class, 'create'])
->name('environment-attachments.create');
Route::post('applications/{application}/environments/{environment}/attachments', [EnvironmentAttachmentController::class, 'store'])
->name('environment-attachments.store');
Route::post('applications/{application}/environments/{environment}/workers', [EnvironmentWorkerController::class, 'store'])
->name('environment-workers.store');
Route::post('applications/{application}/environments/{environment}/migrations', [EnvironmentMigrationController::class, 'store'])
->name('environment-migrations.store');
Route::post('applications/{application}/environments/{environment}/deployments', [EnvironmentDeploymentController::class, 'store'])
->name('environment-deployments.store');
Route::get('applications/{application}/environments/{environment}/variables/create', [EnvironmentVariableController::class, 'create'])
->name('environment-variables.create');
Route::post('applications/{application}/environments/{environment}/variables', [EnvironmentVariableController::class, 'store'])
->name('environment-variables.store');
Route::post('applications/{application}/verify-repository', [ApplicationController::class, 'verifyRepository'])
->name('applications.verify-repository');
});
});