diff --git a/.github/workflows/find-impulsa-web.yml b/.github/workflows/find-impulsa-web.yml index b714f3d..ed4876d 100644 --- a/.github/workflows/find-impulsa-web.yml +++ b/.github/workflows/find-impulsa-web.yml @@ -1,4 +1,4 @@ -name: find-impulsa-source +name: read-impulsa-compose on: workflow_dispatch: @@ -6,24 +6,11 @@ jobs: find: runs-on: self-hosted steps: - - name: Find impulsa_landing image and source + - name: Read impulsa production compose and find landing Dockerfile run: | - 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 - " + echo "=== /opt/impulsa/environments/production/docker-compose.yml ===" + docker run --rm -v /opt/impulsa:/impulsa alpine cat /impulsa/environments/production/docker-compose.yml + echo "=== /opt/impulsa directory tree (depth 3) ===" + docker run --rm -v /opt/impulsa:/impulsa alpine find /impulsa -maxdepth 4 -name "*.yml" -o -name "*.yaml" -o -name "Dockerfile*" 2>/dev/null + echo "=== Container start command ===" + docker inspect impulsa_landing --format '{{.Name}} {{.Config.Cmd}} {{.HostConfig.Binds}}'