|
11 | 11 | paths: |
12 | 12 | - .github/workflows/copilot-setup-steps.yml |
13 | 13 |
|
14 | | -env: |
15 | | - ELASTICSEARCH_ENDPOINTS: "http://localhost:9200" |
16 | | - ELASTICSEARCH_USERNAME: "elastic" |
17 | | - ELASTICSEARCH_PASSWORD: password |
18 | | - KIBANA_ENDPOINT: "http://localhost:5601" |
19 | | - KIBANA_USERNAME: "elastic" |
20 | | - KIBANA_PASSWORD: password |
21 | | - KIBANA_SYSTEM_USERNAME: kibana_system |
22 | | - KIBANA_SYSTEM_PASSWORD: password |
23 | | - TF_ACC: "1" |
24 | | - STACK_VERSION: 9.0.3 |
25 | | - |
26 | 14 | jobs: |
27 | 15 | # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. |
28 | 16 | copilot-setup-steps: |
29 | 17 | runs-on: ubuntu-latest |
| 18 | + |
30 | 19 | # Set the permissions to the lowest permissions possible needed for your steps. |
31 | 20 | # Copilot will be given its own token for its operations. |
32 | 21 | permissions: |
33 | 22 | # If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete. |
34 | 23 | contents: read |
| 24 | + env: |
| 25 | + ELASTICSEARCH_ENDPOINTS: "http://localhost:9200" |
| 26 | + ELASTICSEARCH_USERNAME: "elastic" |
| 27 | + ELASTICSEARCH_PASSWORD: password |
| 28 | + KIBANA_ENDPOINT: "http://localhost:5601" |
| 29 | + KIBANA_USERNAME: "elastic" |
| 30 | + KIBANA_PASSWORD: password |
| 31 | + KIBANA_SYSTEM_USERNAME: kibana_system |
| 32 | + KIBANA_SYSTEM_PASSWORD: password |
| 33 | + TF_ACC: "1" |
35 | 34 | services: |
36 | 35 | elasticsearch: |
37 | | - image: docker.elastic.co/elasticsearch/elasticsearch:${{ env.STACK_VERSION }} |
| 36 | + image: docker.elastic.co/elasticsearch/elasticsearch:9.0.3 |
38 | 37 | env: |
39 | 38 | discovery.type: single-node |
40 | 39 | xpack.security.enabled: true |
|
49 | 48 | - 9200:9200 |
50 | 49 | options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10 |
51 | 50 | kibana: |
52 | | - image: docker.elastic.co/kibana/kibana:${{ env.STACK_VERSION }} |
| 51 | + image: docker.elastic.co/kibana/kibana:9.0.3 |
53 | 52 | env: |
54 | 53 | SERVER_NAME: kibana |
55 | 54 | ELASTICSEARCH_HOSTS: http://elasticsearch:9200 |
|
61 | 60 | - 5601:5601 |
62 | 61 | options: --health-cmd="curl http://localhost:5601/api/status" --health-interval=10s --health-timeout=5s --health-retries=10 |
63 | 62 | fleet: |
64 | | - image: docker.elastic.co/beats/elastic-agent:${{ env.STACK_VERSION }} |
| 63 | + image: docker.elastic.co/beats/elastic-agent:9.0.3 |
65 | 64 | env: |
66 | 65 | SERVER_NAME: fleet |
67 | 66 | FLEET_ENROLL: "1" |
|
0 commit comments