Skip to content

Commit ce47955

Browse files
committed
Forge-Servers -> DevOps w-i-p
1 parent e0486e1 commit ce47955

38 files changed

+499
-317
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
![Moox ForgeServer](https://github.com/mooxphp/moox/raw/main/art/banner/forge-servers.jpg)
1+
![Moox Devops](https://github.com/mooxphp/moox/raw/main/art/banner/devops.jpg)
22

3-
# Moox ForgeServer
3+
# Moox Devops
44

5-
This is my package forge-servers
5+
Moox DevOps is work-in-progress. Manage your Forge Servers ... and more ... in Filament.
66

77
## Quick Installation
88

99
These two commmands are all you need to install the package:
1010

1111
```bash
12-
composer require moox/forge-servers
13-
php artisan mooxforge-servers:install
12+
composer require moox/devops
13+
php artisan mooxdevops:install
1414
```
1515

1616
Curious what the install command does? See manual installation below.
@@ -25,15 +25,15 @@ Here are some things missing, like an overview with screenshots about this packa
2525

2626
## Manual Installation
2727

28-
Instead of using the install-command `php artisan mooxforge-servers:install` you are able to install this package manually step by step:
28+
Instead of using the install-command `php artisan mooxdevops:install` you are able to install this package manually step by step:
2929

3030
```bash
3131
// Publish and run the migrations:
32-
php artisan vendor:publish --tag="forge-servers-migrations"
32+
php artisan vendor:publish --tag="devops-migrations"
3333
php artisan migrate
3434

3535
// Publish the config file with:
36-
php artisan vendor:publish --tag="forge-servers-config"
36+
php artisan vendor:publish --tag="devops-config"
3737
```
3838

3939
## Changelog

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Supported Versions
44

5-
We maintain the current version of `Moox ForgeServer` actively.
5+
We maintain the current version of `Moox MooxServer` actively.
66

77
Do not expect security fixes for older versions.
88

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "moox/forge-servers",
3-
"description": "This is my package forge-servers",
2+
"name": "moox/devops",
3+
"description": "This is my package devops",
44
"keywords": [
55
"Laravel",
66
"Filament",
@@ -21,13 +21,13 @@
2121
},
2222
"autoload": {
2323
"psr-4": {
24-
"Moox\\ForgeServer\\": "src"
24+
"Moox\\Devops\\": "src"
2525
}
2626
},
2727
"extra": {
2828
"laravel": {
2929
"providers": [
30-
"Moox\\ForgeServer\\ForgeServerServiceProvider"
30+
"Moox\\Devops\\DevopsServiceProvider"
3131
]
3232
}
3333
},

config/devops.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
return [
4+
'navigation_sort' => 2001,
5+
6+
'forge_api_key' => env('FORGE_API_KEY'),
7+
'forge_api_url' => env('FORGE_API_URL', 'https://forge.laravel.com/api/v1'),
8+
'forge_server_filter' => env('FORGE_SERVER_FILTER', ''), // string to find in server name, optional
9+
10+
'envoyer_api_key' => env('ENVOYER_API_KEY'),
11+
'envoyer_api_url' => env('ENVOYER_API_URL', 'https://envoyer.io/api'),
12+
'envoyer_server_filter' => env('ENVOYER_SERVER_FILTER', ''), // string to find in server name, optional
13+
14+
'github_token' => env('GITHUB_TOKEN'),
15+
'github_api_url' => env('GITHUB_API_URL', 'https://api.github.com'),
16+
'github_org' => env('GITHUB_ORG'),
17+
'github_repositories' => env('GITHUB_REPOSITORIES', ''), // comma separated list of repositories, optional
18+
];

config/forge-servers.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

database/migrations/create_forge_projects_table.php.stub

Lines changed: 0 additions & 41 deletions
This file was deleted.

database/migrations/create_forge_servers_table.php.stub

Lines changed: 0 additions & 39 deletions
This file was deleted.

database/migrations/create_forge_commits_table.php.stub renamed to database/migrations/create_github_commits_table.php.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ return new class extends Migration
1111
*/
1212
public function up(): void
1313
{
14-
Schema::create('forge_commits', function (Blueprint $table) {
14+
Schema::create('github_commits', function (Blueprint $table) {
1515
$table->id();
1616
$table->string('commit_hash');
1717
$table->string('commit_message');
@@ -30,6 +30,6 @@ return new class extends Migration
3030
public function down(): void
3131

3232
{
33-
Schema::dropIfExists('forge-commits');
33+
Schema::dropIfExists('github_commits');
3434
}
3535
};

database/migrations/create_forge_repositories_table.php.stub renamed to database/migrations/create_github_issues_table.php.stub

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ return new class extends Migration
1111
*/
1212
public function up(): void
1313
{
14-
Schema::create('forge_repositories', function (Blueprint $table) {
14+
Schema::create('github_issues', function (Blueprint $table) {
1515
$table->id();
16-
$table->string('name');
17-
$table->string('repository_url');
18-
$table->integer('platform');
19-
$table->string('platform_uid');
20-
$table->timestamp('last_commit')->nullable();
21-
$table->integer('deploys_to_project_id')->nullable();
16+
$table->string('issue_id');
17+
$table->string('issue_title');
2218
$table->timestamps();
2319
});
2420
}
@@ -29,6 +25,6 @@ return new class extends Migration
2925
public function down(): void
3026

3127
{
32-
Schema::dropIfExists('forge_repositories');
28+
Schema::dropIfExists('github_issues');
3329
}
3430
};
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::create('github_repositories', function (Blueprint $table) {
15+
$table->id();
16+
$table->string('repository_id');
17+
$table->string('repository_comment');
18+
$table->timestamps();
19+
});
20+
}
21+
22+
/**
23+
* Reverse the migrations.
24+
*/
25+
public function down(): void
26+
27+
{
28+
Schema::dropIfExists('github_repositories');
29+
}
30+
};

0 commit comments

Comments
 (0)