Use absolute image to account for custom registry
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
class Mrsk::Commands::App < Mrsk::Commands::Base
|
class Mrsk::Commands::App < Mrsk::Commands::Base
|
||||||
def push
|
def push
|
||||||
# TODO: Run 'docker buildx create --use' when needed
|
# TODO: Run 'docker buildx create --use' when needed
|
||||||
"docker buildx build --push --platform=linux/amd64,linux/arm64 -t #{config.image_with_version} ."
|
"docker buildx build --push --platform=linux/amd64,linux/arm64 -t #{config.absolute_image} ."
|
||||||
end
|
end
|
||||||
|
|
||||||
def pull
|
def pull
|
||||||
"docker pull #{config.image_with_version}"
|
"docker pull #{config.absolute_image}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def start
|
def start
|
||||||
"docker run -d --rm --name #{config.service_with_version} #{config.envs} #{config.labels} #{config.image_with_version}"
|
"docker run -d --rm --name #{config.service_with_version} #{config.envs} #{config.labels} #{config.absolute_image}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
|
|||||||
Reference in New Issue
Block a user