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:
|
branches:
|
||||||
- prod-env
|
- prod-env
|
||||||
paths:
|
paths:
|
||||||
- 'Environment_Monitoring/**'
|
- 'docker-stack-monitoring.yml'
|
||||||
|
- 'swag/**'
|
||||||
|
- '.gitea/workflows/deploy-monitoring-prod.yml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: prod-monitoring-deploy
|
group: prod-monitoring-deploy
|
||||||
@ -61,7 +63,7 @@ jobs:
|
|||||||
docker stack deploy \
|
docker stack deploy \
|
||||||
--with-registry-auth \
|
--with-registry-auth \
|
||||||
--resolve-image changed \
|
--resolve-image changed \
|
||||||
-c Environment_Monitoring/docker-stack-monitoring.yml \
|
-c docker-stack-monitoring.yml \
|
||||||
iklimco-monitoring
|
iklimco-monitoring
|
||||||
|
|
||||||
- name: Wait for Loki
|
- name: Wait for Loki
|
||||||
@ -85,7 +87,7 @@ jobs:
|
|||||||
export RESTRICTED_IPS_BLOCK="$(echo "$RESTRICTED_IPS" | tr ',' '\n' | sed 's|.*| allow &;|')"
|
export RESTRICTED_IPS_BLOCK="$(echo "$RESTRICTED_IPS" | tr ',' '\n' | sed 's|.*| allow &;|')"
|
||||||
|
|
||||||
SWAG_VARS='${PORTAINER_SUBDOMAIN}${RESTRICTED_IPS_BLOCK}'
|
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}")
|
fname=$(basename "${tpl%.tpl}")
|
||||||
envsubst "$SWAG_VARS" < "$tpl" | docker run --rm -i \
|
envsubst "$SWAG_VARS" < "$tpl" | docker run --rm -i \
|
||||||
-v "${SWAG_SITE_CONFS_DIR}:/output" \
|
-v "${SWAG_SITE_CONFS_DIR}:/output" \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user