2

Checking out the example-services repository, they set up services by referencing to images hosted, like here:

    services:
      redis:
        image: redis
        ports:
        - 6379:6379
        options: --entrypoint redis-server

We use a custom Dockerfile for Elasticsearch that's stored in the same repository as the workflow, and is not available publicly on Docker Hub. I would like to reference that Dockerfile as the service without having to push and pull from our private registry. Is this possible?

Jimmy C
  • 9,270
  • 11
  • 44
  • 64

1 Answers1

2

You would need to build said image before being able to reference it. Eg: Workflow

That means using the "Build, Tag, Publish Docker", which allows to references a local Dockerfile (meaning part of your repository)

But it also implies to publish said image, which might or might not acceptable for your case.

Lavish
  • 642
  • 7
  • 12
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250