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

Add variable interpolation to repofile URLs #27

Merged
merged 4 commits into from
Aug 5, 2024
Merged

Conversation

lubomir
Copy link
Contributor

@lubomir lubomir commented Jul 30, 2024

Make it possible to interpolate image labels into the repofile URLs. This can be used to consume the exact same repos that were used to build the base image.

@lubomir lubomir force-pushed the repofile-with-vars branch 2 times, most recently from 29d1f3f to cd64e03 Compare July 31, 2024 13:48
lubomir added 4 commits August 5, 2024 11:04
Make it possible to interpolate image labels into the repofile URLs.
This can be used to consume the exact same repos that were used to build
the base image.

Fixes: #26
The repofile can be specified by as a git clone url, commit sha, and
path within the repo. All of the values can be substitued with image
labels, and the URL can also contain environment variables.

Fixes: #26
@lubomir lubomir force-pushed the repofile-with-vars branch from cd64e03 to 8c7d2ae Compare August 5, 2024 09:07
@msrb
Copy link
Contributor

msrb commented Aug 5, 2024

I think this will solve the problem described in #26 ;)

👍

@lubomir lubomir merged commit 1d77b98 into main Aug 5, 2024
4 checks passed
@lubomir lubomir deleted the repofile-with-vars branch August 5, 2024 09:29
@jpopelka
Copy link
Contributor

jpopelka commented Aug 8, 2024

I've just tried it in https://gitlab.com/redhat/rhel/containers/ubi10-init/-/merge_requests/192 and it works as expected. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants