diff --git a/.github/workflows/call-test-deploy.yml b/.github/workflows/call-test-deploy.yml index c379c43535..3444c3bc55 100644 --- a/.github/workflows/call-test-deploy.yml +++ b/.github/workflows/call-test-deploy.yml @@ -448,8 +448,8 @@ jobs: set -euo pipefail kind=swarm [ "${{ matrix.mode }}" = "swarm" ] || kind=compose - bash "scripts/github/inventory/zip/${kind}_for_upload.sh" echo "INVENTORY_ZIP=/tmp/inventory-${kind}-${APP_ID}.zip" >> "$GITHUB_ENV" + bash "scripts/github/inventory/zip/${kind}_for_upload.sh" - name: "⬆️ Upload inventory artifact" if: ${{ always() && !env.ACT }} diff --git a/scripts/tests/deploy/ci/dedicated.sh b/scripts/tests/deploy/ci/dedicated.sh index d3e377d22a..df4e3df9fd 100755 --- a/scripts/tests/deploy/ci/dedicated.sh +++ b/scripts/tests/deploy/ci/dedicated.sh @@ -65,6 +65,13 @@ echo "=== distro=${INFINITO_DISTRO} app=${apps} (debug always on) ===" cleanup() { rc=$? + local _inv_parent + _inv_parent="$(dirname "${INFINITO_INVENTORY_DIR}")" + echo ">>> Copying generated inventory from ${INFINITO_CONTAINER} to host ${_inv_parent}" + mkdir -p "${_inv_parent}" + # nocheck: container-cp - container-to-host extraction on the CI host itself + docker cp "${INFINITO_CONTAINER}:${_inv_parent}/." "${_inv_parent}/" 2>/dev/null || true # nocheck: shell-or-true -- grandfathered: worked in practice; TODO: sharpen to catch only the exact tolerated error + local _playwright_host_dir="/tmp/playwright-artifacts/${INFINITO_DISTRO}/${apps}" mkdir -p "${_playwright_host_dir}" echo ">>> Copying Playwright artifacts from ${INFINITO_CONTAINER} to ${_playwright_host_dir}" @@ -96,13 +103,6 @@ cleanup() { bash scripts/tests/deploy/utils/rescue_index.sh "${_rescue_host_dir}" - local _inv_parent - _inv_parent="$(dirname "${INFINITO_INVENTORY_DIR}")" - echo ">>> Copying generated inventory from ${INFINITO_CONTAINER} to host ${_inv_parent}" - mkdir -p "${_inv_parent}" - # nocheck: container-cp - container-to-host extraction on the CI host itself - docker cp "${INFINITO_CONTAINER}:${_inv_parent}/." "${_inv_parent}/" 2>/dev/null || true # nocheck: shell-or-true -- grandfathered: worked in practice; TODO: sharpen to catch only the exact tolerated error - echo ">>> Removing stack for distro ${INFINITO_DISTRO} (fresh start for next distro)" "${PYTHON}" -m cli.administration.deploy.development down || true # nocheck: shell-or-true -- grandfathered: worked in practice; TODO: sharpen to catch only the exact tolerated error