Add Promtail to cd-infra SCP sources and deploy service list
The previous PR added Promtail to docker-compose but the CD workflow didn't copy the config file or include promtail in the service list. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
826cce588e
commit
271dfa8b01
1 changed files with 2 additions and 2 deletions
4
.github/workflows/cd-infra.yml
vendored
4
.github/workflows/cd-infra.yml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
||||||
host: ${{ secrets.DEPLOY_HOST }}
|
host: ${{ secrets.DEPLOY_HOST }}
|
||||||
username: root
|
username: root
|
||||||
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
source: "infrastructure/docker-compose.yml,infrastructure/Caddyfile,infrastructure/prometheus/prometheus.yml,infrastructure/loki/loki-config.yml,infrastructure/grafana/provisioning,infrastructure/grafana/dashboards"
|
source: "infrastructure/docker-compose.yml,infrastructure/Caddyfile,infrastructure/prometheus/prometheus.yml,infrastructure/loki/loki-config.yml,infrastructure/promtail/promtail-config.yml,infrastructure/grafana/provisioning,infrastructure/grafana/dashboards"
|
||||||
target: /opt/trails-cool
|
target: /opt/trails-cool
|
||||||
strip_components: 1
|
strip_components: 1
|
||||||
|
|
||||||
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
docker compose --env-file .env up -d --remove-orphans
|
docker compose --env-file .env up -d --remove-orphans
|
||||||
else
|
else
|
||||||
# Restart infra services (except Caddy — just reload its config)
|
# Restart infra services (except Caddy — just reload its config)
|
||||||
docker compose --env-file .env up -d postgres prometheus loki grafana postgres-exporter node-exporter cadvisor
|
docker compose --env-file .env up -d postgres prometheus loki promtail grafana postgres-exporter node-exporter cadvisor
|
||||||
docker compose exec caddy caddy reload --config /etc/caddy/Caddyfile
|
docker compose exec caddy caddy reload --config /etc/caddy/Caddyfile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue