Extract builder from app

Building is different from running
This commit is contained in:
David Heinemeier Hansson
2023-01-12 18:16:52 +01:00
parent 08c30a14b9
commit b3992973d6
6 changed files with 49 additions and 36 deletions

View File

@@ -2,10 +2,10 @@ require_relative "setup"
namespace :mrsk do
desc "Deploy app for the first time to a fresh server"
task fresh: %w[ server:bootstrap registry:login app:deliver traefik:run app:stop app:run ]
task fresh: %w[ server:bootstrap registry:login builder:deliver traefik:run app:stop app:run ]
desc "Push the latest version of the app, ensure Traefik is running, then restart app"
task deploy: %w[ registry:login app:deliver traefik:run app:stop app:run prune ]
task deploy: %w[ registry:login builder:deliver traefik:run app:stop app:run prune ]
desc "Rollback to VERSION=x that was already run as a container on servers"
task rollback: %w[ app:restart ]