fix(workflow): correct file paths for standalone repo context
paths filter and stack/swag references used Environment_Monitoring/ prefix which only makes sense in the main repo context. Since this workflow runs inside the Environment_Monitoring repo itself, all paths are relative to the repo root.
This commit is contained in:
parent
735d957dfa
commit
a2e8997711
@ -5,7 +5,9 @@ on:
|
||||
branches:
|
||||
- prod-env
|
||||
paths:
|
||||
- 'Environment_Monitoring/**'
|
||||
- 'docker-stack-monitoring.yml'
|
||||
- 'swag/**'
|
||||
- '.gitea/workflows/deploy-monitoring-prod.yml'
|
||||
|
||||
concurrency:
|
||||
group: prod-monitoring-deploy
|
||||
@ -61,7 +63,7 @@ jobs:
|
||||
docker stack deploy \
|
||||
--with-registry-auth \
|
||||
--resolve-image changed \
|
||||
-c Environment_Monitoring/docker-stack-monitoring.yml \
|
||||
-c docker-stack-monitoring.yml \
|
||||
iklimco-monitoring
|
||||
|
||||
- name: Wait for Loki
|
||||
@ -85,7 +87,7 @@ jobs:
|
||||
export RESTRICTED_IPS_BLOCK="$(echo "$RESTRICTED_IPS" | tr ',' '\n' | sed 's|.*| allow &;|')"
|
||||
|
||||
SWAG_VARS='${PORTAINER_SUBDOMAIN}${RESTRICTED_IPS_BLOCK}'
|
||||
for tpl in Environment_Monitoring/swag/site-confs/*.conf.tpl; do
|
||||
for tpl in swag/site-confs/*.conf.tpl; do
|
||||
fname=$(basename "${tpl%.tpl}")
|
||||
envsubst "$SWAG_VARS" < "$tpl" | docker run --rm -i \
|
||||
-v "${SWAG_SITE_CONFS_DIR}:/output" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user