-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the best way to use elasticsearch as services in GHA #44
Comments
Hi @sh977218, This is untested code, but you can try something like this: services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:VERSION
ports:
- 9200:9200 You can probably pass in the volumes as an option key, something like: services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:VERSION
options: >-
--volume example:example
ports:
- 9200:9200 Hope this helps. |
Hi, @picandocodigo If I remove those 2 lines below, the workflow works fine, as you suggested. Thanks!
However, if I use playwright docker image in the workflow, it does not work anymore. Do you know how to fix this?
|
I'm glad Elasticsearch is working now! I'm not familiar with using services in GitHub Actions with a container. Is there an error? Is it that the container can't reach Elasticsearch when using the playwright image? Maybe there's something in the |
Yes, I believe the playwright image is within docker container, Elasticsearch is also within in docker container (GitHub Action's |
The text was updated successfully, but these errors were encountered: