I want to have a services section for Github Actions workflow file with a private registry. The simplified config looks like this:
jobs:
my_job:
runs-on: ubuntu-latest
services:
image-name:
image: docker.pkg.github.com/<org>/<repo>/<image>
steps:
# ...
The repo resides within the same organization, if it matters. Also the image can be pulled with a proper credentials locally, but obviously fails at github actions pipeline with an error:
Error response from daemon: Get <image_url>: no basic auth credentials
So my question is: is it possible to specify credentials either via env vars (aka Secrets in Github), or maybe some flag for services.options exists? I believe this can be an alternative with manual login/pulling/starting, but I would prefer declarative way.