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

Support docker-compose.{yml, yaml} files #1056

Open
alex-way opened this issue May 23, 2024 · 1 comment
Open

Support docker-compose.{yml, yaml} files #1056

alex-way opened this issue May 23, 2024 · 1 comment

Comments

@alex-way
Copy link
Contributor

It would be great if we could support docker-compose.yml files more natively.

At the moment I'm needing to do a crude sed command to replace the version manually as part of a secondary workflow step.

The only issue is that the current configuration of versioned_files which takes a list of strings I don't think will work. The main reason being is that you'd need some kind've additional information to detail which images/services within the docker-compose file you want to update/manage.

Perhaps #482 is the answer?

@dbanty
Copy link
Member

dbanty commented Aug 18, 2024

In 0.18.0 there's a new extended format for versioned_files that looks like {path = "some/path", dependency = "name-of-package"} so we can update more types of versions in more places.

Right now, it only supports updating a crate within a Cargo.toml file, but I think it could work for docker-compose.yml as well 🤔.

Can you give an example of a file with a version you'd want to update? Part of the trouble I can see coming is that Docker tags are not usually just the version number, they often have a prefix, like v1.2.3, so we might need a bit more flexibility still.

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

No branches or pull requests

2 participants