Add tasks to build and push docker image

This commit is contained in:
Claudio Ortolina
2025-03-05 09:53:17 +00:00
parent 20950fc58b
commit 9b03e78ca6
+8
View File
@@ -63,3 +63,11 @@ run = 'mix test'
[tasks.console] [tasks.console]
description = 'Run the application attached to an IEx console' description = 'Run the application attached to an IEx console'
run = 'iex -S mix phx.server' run = 'iex -S mix phx.server'
[tasks.docker-build]
description = 'Builds and tags the application Docker image'
run = 'docker build -t fullyforged/music_library .'
[tasks.docker-push]
description = 'Push the image to the registry'
run = 'docker push fullyforged/music_library'