From 177451875428fa1f56d9eee07073c9bed0e6337d Mon Sep 17 00:00:00 2001 From: darkcodex Date: Tue, 10 Mar 2026 22:36:43 +0100 Subject: [PATCH] temp: find impulsa_landing image source and docker-compose --- .github/workflows/find-impulsa-web.yml | 30 ++++++++++++++++++-------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/find-impulsa-web.yml b/.github/workflows/find-impulsa-web.yml index 665f71b..b714f3d 100644 --- a/.github/workflows/find-impulsa-web.yml +++ b/.github/workflows/find-impulsa-web.yml @@ -1,5 +1,4 @@ -name: Find Impulsa Web - +name: find-impulsa-source on: workflow_dispatch: @@ -7,11 +6,24 @@ jobs: find: runs-on: self-hosted steps: - - name: Inspect impulsa_landing container + - name: Find impulsa_landing image and source run: | - echo "=== Mounts ===" - docker inspect impulsa_landing --format '{{range .Mounts}}Source={{.Source}} Dest={{.Destination}}{{"\n"}}{{end}}' - echo "=== Traefik labels ===" - docker inspect impulsa_landing --format '{{range $k,$v := .Config.Labels}}{{$k}}={{$v}}{{"\n"}}{{end}}' | grep -i traefik - echo "=== index.html ===" - docker exec impulsa_landing cat /usr/share/nginx/html/index.html + echo "=== Container image ===" + docker inspect impulsa_landing --format '{{.Config.Image}}' + echo "=== Image history ===" + docker inspect impulsa_landing --format '{{.Image}}' + IMAGE_ID=$(docker inspect impulsa_landing --format '{{.Image}}') + docker inspect $IMAGE_ID --format '{{range .Config.Env}}{{.}}{{"\n"}}{{end}}' + echo "=== Find docker-compose files with impulsa_landing ===" + docker run --rm -v /home:/host-home -v /opt:/host-opt alpine sh -c " + find /host-home /host-opt -name 'docker-compose*' 2>/dev/null | while read f; do + if grep -q 'impulsa_landing\|impulsa-landing' \"\$f\" 2>/dev/null; then + echo \"FOUND: \$f\" + cat \"\$f\" + fi + done + " + echo "=== All docker-compose files ===" + docker run --rm -v /home:/host-home -v /opt:/host-opt alpine sh -c " + find /host-home /host-opt -name 'docker-compose*' 2>/dev/null + "