-
Notifications
You must be signed in to change notification settings - Fork 382
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 dependabot updates of docker images referencing cypress-docker-images #1250
Comments
For Cypress Docker images to support GitHub Dependabot version updates would require a re-design of the whole Cypress Docker image creation and publication process as far as I can see.
Cypress Docker images do not have a 1:1 relationship to a specific Dockerfile.
Reading the Dependabot documentation it seems that tags would need to be |
Thanks @MikeMcC399 for the update! I understand that supporting dependabot for cypress-docker-images might then not be planned soon as it requires a re-design? Would there be other opportunities from the list of dependabot package-ecosystem to auto-update browsers supported by cypress? For instance:
Then to fetch browsers there are options:
|
You can assume that there are no major enhancements planned unless the Cypress.io team announces them.
I don't see any simple way to use Dependabot. If you are not tied to Dependabot, you may want to look at https://docs.renovatebot.com/docker/ which is able to update |
It would be possible to extend this scheme also to |
Thanks @MikeMcC399 for the tip, I'll look into renovatebot, and for the opportunity to extends its support to |
It seems I was too optimistic in thinking that the Renovate Docker implementation would help in GitHub Actions. Reading the docs, GitHub Actions aren't listed. CircleCI is listed however, so it would have some benefit. |
Seems like it is possible to use renovate with GitHub Actions with this app https://github.com/apps/renovate
|
If you can find a section which says that Docker images used in GitHub Actions can be updated by Renovate, that would be great. That was however not my understanding of the documentation. |
I looked at https://docs.renovatebot.com/docker/
The following example among candidates of the second search seems to show a proof of concept:
edit: plus renovate-created issue/PR:
|
|
Sorry that there was a little confusion, as your original example was about updating a Cypress browser Docker image in a I was additionally asking about updating Cypress Docker images in a GitHub Actions workflow, such as https://github.com/cypress-io/github-action/blob/master/.github/workflows/example-docker.yml. And as far as I can see, that would not be covered by Renovate.
We can keep this issue (#1250) to discuss about Dependabot updates only. |
Although it's not explicitly documented, Renovate is updating |
I have configured dependabot updates of cypress-docker-images in a private repository:
.github/dependabot.yml
:docker/chrome/Dockerfile
docker/firefox/Dockerfile
(browsers with separate docker files each with separate cypress/browsers tags as our cypress tests may break independently with web browser version updates even if these versions are supported by cypress, but that's not the issue here)
Dependabot runs include:
docker/chrome/Dockerfile
docker/firefox/Dockerfile
Dependabot should have proposed to update
node-22.11.0-chrome-130.0.6723.69-1-ff-132.0-edge- 30.0.2849.56-1
tonode-22.11.0-chrome-130.0.6723.116-1-ff-132.0.1-edge-130.0.2849.68-1
fordocker/firefox/Dockerfile
.From https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#docker
Would it be possible to support dependabot updates of cypress-docker-images, by, as in dependabot-fixtures/docker-with-source, 1) adding
org.opencontainers.image.source
labels to Dockerfiles and 2) tagging the repository with the same tags as the published Docker images?The text was updated successfully, but these errors were encountered: