parent
4f4a4ae8d1
commit
19f2a43791
5 changed files with 63 additions and 0 deletions
@ -0,0 +1,17 @@ |
||||
package MJB::Web::Tasks::CreateBlog; |
||||
use Mojo::Base 'Minion::Job', -signatures; |
||||
use Mojo::File qw( curfile ); |
||||
use File::Copy::Recursive qw( dircopy ); |
||||
use IPC::Run3; |
||||
|
||||
sub run ( $job, $blog_id ) { |
||||
my $blog = $job->app->db->blog( $blog_id ); |
||||
|
||||
# Create clone of standard jekyll blog in repos/user_id/blog_id |
||||
|
||||
# Set the git configuration for the clone so that it goes to gitea. |
||||
# TODO: add gitea user with ssh key? |
||||
|
||||
} |
||||
|
||||
1; |
||||
@ -0,0 +1,18 @@ |
||||
package MJB::Web::Tasks::DeployBlog; |
||||
use Mojo::Base 'Minion::Job', -signatures; |
||||
use Mojo::File qw( curfile ); |
||||
use File::Copy::Recursive qw( dircopy ); |
||||
use IPC::Run3; |
||||
|
||||
sub run ( $job, $blog_id ) { |
||||
my $blog = $job->app->db->blog( $blog_id ); |
||||
|
||||
# Check out the blog repo to a build area. |
||||
|
||||
# Build the blog with the jekyll builder in podman |
||||
|
||||
# Use ansible to deploy the blog to the web servers. |
||||
|
||||
} |
||||
|
||||
1; |
||||
@ -0,0 +1,15 @@ |
||||
package MJB::Web::Tasks::CreateBlog; |
||||
use Mojo::Base 'Minion::Job', -signatures; |
||||
use Mojo::File qw( curfile ); |
||||
use File::Copy::Recursive qw( dircopy ); |
||||
use IPC::Run3; |
||||
|
||||
sub run ( $job, $blog_id ) { |
||||
my $blog = $job->app->db->blog( $blog_id ); |
||||
|
||||
# Remove the blog from gitea storage |
||||
|
||||
# Delete the blog from the web servers |
||||
} |
||||
|
||||
1; |
||||
Loading…
Reference in new issue