ci: minor workflow cleanup
This commit is contained in:
parent
c77a5a9ba9
commit
3fe48f32b9
|
@ -45,41 +45,42 @@ jobs:
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
- name: Set password of every built-in user to 'testpasswd'
|
- name: Set password of every built-in user to 'testpasswd'
|
||||||
run: |
|
run: >-
|
||||||
|
sed -i
|
||||||
|
-e 's/\(ELASTIC_PASSWORD=\)'\''changeme'\''/\1testpasswd/g'
|
||||||
|
-e 's/\(LOGSTASH_INTERNAL_PASSWORD=\)'\''changeme'\''/\1testpasswd/g'
|
||||||
|
-e 's/\(KIBANA_SYSTEM_PASSWORD=\)'\''changeme'\''/\1testpasswd/g'
|
||||||
|
-e 's/\(METRICBEAT_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g'
|
||||||
|
-e 's/\(FILEBEAT_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g'
|
||||||
|
-e 's/\(HEARTBEAT_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g'
|
||||||
|
-e 's/\(MONITORING_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g'
|
||||||
|
-e 's/\(BEATS_SYSTEM_PASSWORD=\)'\'\''/\1testpasswd/g'
|
||||||
|
.env
|
||||||
|
|
||||||
sed -i -e 's/\(ELASTIC_PASSWORD=\)'\''changeme'\''/\1testpasswd/g' \
|
- name: Set up users and roles
|
||||||
-e 's/\(LOGSTASH_INTERNAL_PASSWORD=\)'\''changeme'\''/\1testpasswd/g' \
|
run: docker compose up setup
|
||||||
-e 's/\(KIBANA_SYSTEM_PASSWORD=\)'\''changeme'\''/\1testpasswd/g' \
|
|
||||||
-e 's/\(METRICBEAT_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g' \
|
|
||||||
-e 's/\(FILEBEAT_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g' \
|
|
||||||
-e 's/\(HEARTBEAT_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g' \
|
|
||||||
-e 's/\(MONITORING_INTERNAL_PASSWORD=\)'\'\''/\1testpasswd/g' \
|
|
||||||
-e 's/\(BEATS_SYSTEM_PASSWORD=\)'\'\''/\1testpasswd/g' .env
|
|
||||||
|
|
||||||
##########################################################
|
#############################
|
||||||
# #
|
# #
|
||||||
# Test core components: Elasticsearch, Logstash, Kibana. #
|
# Test core and extensions. #
|
||||||
# #
|
# #
|
||||||
##########################################################
|
#############################
|
||||||
|
|
||||||
- name: Run the stack
|
|
||||||
run: |
|
|
||||||
docker compose up setup
|
|
||||||
docker compose up -d
|
|
||||||
|
|
||||||
# Elasticsearch's high disk watermark gets regularly exceeded on GitHub Actions runners.
|
# Elasticsearch's high disk watermark gets regularly exceeded on GitHub Actions runners.
|
||||||
# https://www.elastic.co/guide/en/elasticsearch/reference/8.10/fix-watermark-errors.html
|
# https://www.elastic.co/guide/en/elasticsearch/reference/8.10/fix-watermark-errors.html
|
||||||
- name: Disable Elasticsearch disk allocation decider
|
- name: Disable Elasticsearch disk allocation decider
|
||||||
run: .github/workflows/scripts/disable-disk-alloc-decider.sh
|
run: .github/workflows/scripts/disable-disk-alloc-decider.sh
|
||||||
|
|
||||||
- name: Execute core test suite
|
#
|
||||||
run: .github/workflows/scripts/run-tests-core.sh
|
# Core components: Elasticsearch, Logstash, Kibana
|
||||||
|
#
|
||||||
|
|
||||||
##############################
|
- name: Execute core test suite
|
||||||
# #
|
run: |
|
||||||
# Test supported extensions. #
|
docker compose up -d
|
||||||
# #
|
.github/workflows/scripts/run-tests-core.sh
|
||||||
##############################
|
# next steps don't need Logstash
|
||||||
|
docker compose stop logstash
|
||||||
|
|
||||||
#
|
#
|
||||||
# Fleet
|
# Fleet
|
||||||
|
|
Loading…
Reference in New Issue