From 4e4698a69e9ed7d126c5f5911a745938d5ec0551 Mon Sep 17 00:00:00 2001 From: Tudor Marghidanu Date: Mon, 12 Feb 2024 17:36:23 +0200 Subject: [PATCH] Updated Docr --- shard.lock | 6 +++++- src/werk/jobs/docker.cr | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/shard.lock b/shard.lock index b7c438e..902dfa6 100644 --- a/shard.lock +++ b/shard.lock @@ -4,9 +4,13 @@ shards: git: https://github.com/jwaldrip/admiral.cr.git version: 1.11.5 + crystar: + git: https://github.com/naqvis/crystar.git + version: 0.3.1 + docr: git: https://github.com/marghidanu/docr.git - version: 0.1.0+git.commit.7a8cd14c89f5e9bef64538e23c75cb0610ae44e5 + version: 0.1.1+git.commit.b0e57d938a3ee8628be58917c42ee63ead50086d dotenv: git: https://github.com/gdotdesign/cr-dotenv.git diff --git a/src/werk/jobs/docker.cr b/src/werk/jobs/docker.cr index b96b855..ffb01f4 100644 --- a/src/werk/jobs/docker.cr +++ b/src/werk/jobs/docker.cr @@ -1,5 +1,6 @@ require "digest/md5" require "docr" +require "docr/utils" require "log" module Werk::Jobs @@ -35,7 +36,8 @@ module Werk::Jobs # Checking if the image exists locally api.images.inspect(@image) Log.debug { "Image #{@image} was found locally" } - rescue + rescue ex + Log.debug { ex } Log.debug { "Fetching image #{@image}" } repository, tag = Docr::Utils.parse_repository_tag(@image) api.images.create(repository, tag)