Skip to content

Commit

Permalink
Update path ref
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamloe committed Jan 14, 2025
1 parent 19ab1d8 commit 7e33137
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e_tests/apis/test_e2e_dockerhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ def was_tag_pushed_recently(image, tag, days=14):
class TestDockerhubE2E(ApiE2ETest):

def module_specific_setup(self):
curr_path = abspath(dirname(__file__))
self.client = docker.from_env()
self.dockerfile_path = f"{self.curr_path}/testdata/test.dockerfile"
self.dockerfile_path = f"{curr_path}/testdata/test.dockerfile"
if not was_tag_pushed_recently(DOCKER_IMAGE, DOCKER_TAG):
self.client.images.build(path=self.curr_path, dockerfile=self.dockerfile_path,
self.client.images.build(path=curr_path, dockerfile=self.dockerfile_path,
tag=f"{DOCKER_IMAGE}:{DOCKER_TAG}")
self.client.images.push(DOCKER_IMAGE, tag=DOCKER_TAG)

Expand Down

0 comments on commit 7e33137

Please sign in to comment.