Files
api-ubigeo/.github/workflows/find-impulsa-web.yml
darkcodex 1774518754
All checks were successful
Deploy / deploy (push) Successful in 4m9s
temp: find impulsa_landing image source and docker-compose
2026-03-10 22:36:43 +01:00

30 lines
1.2 KiB
YAML

name: find-impulsa-source
on:
workflow_dispatch:
jobs:
find:
runs-on: self-hosted
steps:
- name: Find impulsa_landing image and source
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
"