Skip to content

Commit

Permalink
Make image search more intuitively
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed May 5, 2021
1 parent e4ccd7a commit 23eaf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployer/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import subprocess

HERE = os.getcwd()
HERE = os.path.dirname(os.path.abspath(__file__))

def first_alpha(s):
"""
Expand Down Expand Up @@ -56,7 +56,7 @@ def build_image(image_repo):
"""
Build & push image in images/user if needed
"""
tag = last_modified_commit(os.path.join(HERE, "images/user"))
tag = last_modified_commit(os.path.join(os.path.dirname(HERE), "images/user"))
image_name = f"{image_repo}:{tag}"

if image_exists(image_name):
Expand Down

0 comments on commit 23eaf5a

Please sign in to comment.