Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid doing the same repeated build in the dev/test pipelines #592

Closed
filippomc opened this issue Oct 19, 2022 · 0 comments
Closed

Avoid doing the same repeated build in the dev/test pipelines #592

filippomc opened this issue Oct 19, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request scope:ci-cd

Comments

@filippomc
Copy link
Collaborator

filippomc commented Oct 19, 2022

One strategy could be to check if the expected image tag is already available/pushed. See https://codefresh.io/docs/docs/codefresh-yaml/conditional-execution-of-steps/

Strategy:

  1. for each build, compute hash of the context folder -- eg with https://pypi.org/project/dirhash/
  2. Use the above hash as a base to tag images
  3. If an image already exists in the repo with the hash, use that image -- can use docker manifest inspect to check if an image exists
  4. For cloudharness images, use a shared repo so that multiple projects can share the same images from ch
  5. Images are retagged un publish with the project/build specific tag
@filippomc filippomc changed the title Avoid doing the same build twice in the dev/test pipelines Avoid doing the same repeated build in the dev/test pipelines Oct 19, 2022
filippomc added a commit that referenced this issue Mar 7, 2023
filippomc added a commit that referenced this issue Mar 7, 2023
filippomc added a commit that referenced this issue Mar 8, 2023
filippomc added a commit that referenced this issue Mar 8, 2023
filippomc added a commit that referenced this issue Mar 8, 2023
filippomc added a commit that referenced this issue Mar 8, 2023
filippomc added a commit that referenced this issue Mar 8, 2023
filippomc added a commit that referenced this issue Mar 8, 2023
filippomc added a commit that referenced this issue Mar 9, 2023
filippomc added a commit that referenced this issue Mar 9, 2023
filippomc added a commit that referenced this issue Mar 9, 2023
filippomc added a commit that referenced this issue Mar 9, 2023
filippomc added a commit that referenced this issue Mar 9, 2023
filippomc added a commit that referenced this issue Mar 9, 2023
filippomc added a commit that referenced this issue Mar 9, 2023
@filippomc filippomc self-assigned this Mar 9, 2023
@filippomc filippomc added the enhancement New feature or request label Mar 9, 2023
filippomc added a commit that referenced this issue Mar 10, 2023
filippomc added a commit that referenced this issue Mar 14, 2023
filippomc added a commit that referenced this issue Mar 23, 2023
filippomc added a commit that referenced this issue Jun 19, 2023
filippomc added a commit that referenced this issue Jun 19, 2023
filippomc added a commit that referenced this issue Jun 19, 2023
filippomc added a commit that referenced this issue Jun 19, 2023
filippomc added a commit that referenced this issue Jun 19, 2023
filippomc added a commit that referenced this issue Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope:ci-cd
Projects
None yet
Development

No branches or pull requests

1 participant