This commit is contained in:
David Heinemeier Hansson
2023-01-08 16:22:50 +01:00
parent 998525c93d
commit 55445ae110
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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"