Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Fix promotion not working when using a build tag #70

Merged
merged 3 commits into from
Oct 27, 2020
Merged

Conversation

skovhus
Copy link
Contributor

@skovhus skovhus commented Oct 26, 2020

Resolves #68

Details on the issue

The issue here is the confusing ordered list tags (should be named imageNames as it contains repo:tag). Previously when determining images we could promote we expected the repository in the tags to be the same. This is not the case when the user defines a tag in the build section of the configuration.

Instead of reying on the last tag in the list, we should consider all repositories.

This solves an issue where the last tag in the list was actually another repository (due to the build.tag option in the BUILD.yml file), and we thereby lost the promotion cache.
@skovhus skovhus marked this pull request as ready for review October 27, 2020 11:22
@skovhus
Copy link
Contributor Author

skovhus commented Oct 27, 2020

FYI @corradio

brick/dockerlib.py Outdated Show resolved Hide resolved
@skovhus skovhus merged commit bbd6c3f into master Oct 27, 2020
@skovhus skovhus deleted the ks/fix-promotion branch October 27, 2020 13:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Caching" of builds is not working
2 participants