Style
This commit is contained in:
@@ -2,16 +2,16 @@ require_relative "setup"
|
|||||||
|
|
||||||
namespace :mrsk do
|
namespace :mrsk do
|
||||||
desc "Deploy app for the first time to a fresh server"
|
desc "Deploy app for the first time to a fresh server"
|
||||||
task fresh: [ "server:bootstrap", "registry:login", "app:deliver", "traefik:run", "app:stop", "app:run" ]
|
task fresh: %w[ server:bootstrap registry:login app:deliver traefik:run app:stop app:run ]
|
||||||
|
|
||||||
desc "Push the latest version of the app, ensure Traefik is running, then restart app"
|
desc "Push the latest version of the app, ensure Traefik is running, then restart app"
|
||||||
task deploy: [ "registry:login", "app:deliver", "traefik:run", "app:stop", "app:run", "prune" ]
|
task deploy: %w[ registry:login app:deliver traefik:run app:stop app:run prune ]
|
||||||
|
|
||||||
desc "Rollback to VERSION=x that was already run as a container on servers"
|
desc "Rollback to VERSION=x that was already run as a container on servers"
|
||||||
task rollback: [ "app:restart" ]
|
task rollback: %w[ app:restart ]
|
||||||
|
|
||||||
desc "Display information about Traefik and app containers"
|
desc "Display information about Traefik and app containers"
|
||||||
task info: [ "traefik:info", "app:info" ]
|
task info: %w[ traefik:info app:info ]
|
||||||
|
|
||||||
desc "Create config stub in config/deploy.yml"
|
desc "Create config stub in config/deploy.yml"
|
||||||
task :init do
|
task :init do
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ require_relative "setup"
|
|||||||
|
|
||||||
namespace :mrsk do
|
namespace :mrsk do
|
||||||
desc "Prune unused images and stopped containers"
|
desc "Prune unused images and stopped containers"
|
||||||
task prune: [ "prune:containers", "prune:images" ]
|
task prune: %w[ prune:containers prune:images ]
|
||||||
|
|
||||||
namespace :prune do
|
namespace :prune do
|
||||||
desc "Prune unused images older than 30 days"
|
desc "Prune unused images older than 30 days"
|
||||||
|
|||||||
Reference in New Issue
Block a user