Skip to content

Commit

Permalink
Updated Docr
Browse files Browse the repository at this point in the history
  • Loading branch information
Tudor Marghidanu committed Feb 12, 2024
1 parent 337f763 commit 4e4698a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/werk/jobs/docker.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require "digest/md5"
require "docr"
require "docr/utils"
require "log"

module Werk::Jobs
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4e4698a

Please sign in to comment.