Keep it simple for the proposal

This commit is contained in:
Samuel Sieg
2023-03-12 10:41:04 +01:00
parent 4bf77ccd1b
commit 9b39f2f3ab
4 changed files with 26 additions and 43 deletions

View File

@@ -1,8 +1,8 @@
class Mrsk::Cli::Build < Mrsk::Cli::Base
desc "deliver", "Build app and push app image to registry then pull image on servers"
option :skip_push, aliases: "-P", type: :boolean, default: false, desc: "Skip image build and push"
option :use_prebuilt_image, aliases: "-P", type: :boolean, default: false, desc: "Use prebuilt image, skip build"
def deliver
push unless options[:skip_push]
push unless options[:use_prebuilt_image]
pull
end