Skip to content

Commit d7c05aa

Browse files
committed
Add step Fix Prometheus data folder permissions for GitHub Actions
1 parent 80f0d4d commit d7c05aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker-compose-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919

2020
- name: Validate Prometheus config
2121
run: |
22-
# Скачиваем promtool прямо в workflow
2322
curl -sSL https://github.com/prometheus/prometheus/releases/download/v2.48.0/prometheus-2.48.0.linux-amd64.tar.gz | tar -xz
2423
./prometheus-2.48.0.linux-amd64/promtool check config ./prometheus/config/prometheus.yml
2524
@@ -29,6 +28,9 @@ jobs:
2928
- name: Start services
3029
run: docker compose up -d
3130

31+
- name: Fix Prometheus data folder permissions
32+
run: sudo chown -R 65534:65534 ./prometheus/data
33+
3234
- name: Wait for containers to initialize
3335
run: sleep 20
3436

0 commit comments

Comments
 (0)