Skip to content

Commit

Permalink
Update Dockerfile is needed. We do not need upstream FROM
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Sep 16, 2024
1 parent 2cb33ab commit 1388734
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
dockerfiles: ./Dockerfile.generator
image: cwt-generator
tags: latest 1 ${{ github.sha }} 1.5.7
tags: latest 1 ${{ github.sha }} 1.5.8

- name: Push cwt-generator image to Quay.io
id: push-to-quay
Expand Down
6 changes: 6 additions & 0 deletions container_workflow_tool/distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ def dist_git_merge_changes(self, images, rebase=False):
pull_upstr = image.get("pull_upstream", True)
repo = self._clone_downstream(component, branch)
df_path = os.path.join(component, "Dockerfile")
downstream_from = self.df_handler.get_from_df(df_path)
self.logger.debug(f"Downstream_from: {downstream_from}\n")
from_tag = self.conf.get("from_tag", "latest")
self.df_handler.update_dockerfile(
df_path, from_tag, downstream_from=downstream_from
)
if rebase or not pull_upstr:
# It is possible for the git repository to have no changes
if repo.is_dirty():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_dir(system_path=None, virtual_path=None):

setup(
name='container-workflow-tool',
version="1.5.7",
version="1.5.8",
description='A python3 tool to make rebuilding images easier by automating several steps of the process.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 1388734

Please sign in to comment.