cog
cog copied to clipboard
Interoperability with Github Actions?
Been having difficulty getting cog build
to run inside of a Github Action; the problem seems to be the "inner Docker" (the Docker invoked by Cog) lacking authentication credentials.
This is despite prior steps in the job being able to push/pull from the Docker registry (Artifact Registry on GCP) with no problem.
Anyone had success with building images on Github Actions?
Hi @LDMFD. We frequently use GitHub Actions to release models with Cog as part of our CI/CD process. If you're having trouble authenticating, take a look at replicate/setup-cog.
Hi, thank you for the pointer! This works.
I was curious why your workflow worked and mine didn't, so it turns out that Cog v0.8.0-beta3
works (and is what replicate/setup-cog@v1
is pinned to), but neither v0.8.6
(pointed to by setup-cog's main
) nor 0.9.4
(the latest Cog tag) do.
It seems odd that the Beta release works but 0.9 does not?!
BTW I found the link to the Github Action in your CONTRIBUTING.md guide but you could perhaps make this a bit more prominent :) 😅