Mounting a config file in github actions services

I have a project that during tests talks to grafana loki.
Loki can only be configured through a config file.

Where can I put its config file so that the service can find it (this happens before checkout).

This is what I need to achieve

docker run -d --name=loki --mount type=bind,source=`pwd`/loki-multitenant-docker-config.yaml,target=/etc/loki/local-config.yaml -p 3100:3100 -p 9095:9095 grafana/loki

But this does not work

    services:
      loki:
        image: grafana/loki:2.3.0
        ports:
          - 3100:3100
          - 9095:9095
        volumes:
          - /loki-multitenant-docker-config.yaml:/etc/loki/local-config.yaml
2 Likes