elastic-github-actions icon indicating copy to clipboard operation
elastic-github-actions copied to clipboard

What is the best way to use elasticsearch as services in GHA

Open sh977218 opened this issue 10 months ago • 4 comments

jobs:
  buikd:
    name: build
    runs-on: ubuntu-latest
    services:
      elasticsearch:
        image: elastic/elastic-github-actions/elasticsearch@master
        /*         how do I specific the volume/es's version etc here?
         **
         */
        ports:
        - 9200:9200
    steps:
      - run: curl -X GET http://localhost:9200/_cluster/health

sh977218 avatar Dec 09 '24 15:12 sh977218