From e4be2bebe7685b597b80ca36b78bde62965e195b Mon Sep 17 00:00:00 2001 From: Hongli Lai Date: Wed, 21 Aug 2024 22:12:18 +0200 Subject: [PATCH] apiserver: upgrade Debendencies --- .github/workflows/apiserver.yml | 2 +- ansible/files/apiserver-deployer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/apiserver.yml b/.github/workflows/apiserver.yml index 80c88c0..723b5b4 100644 --- a/.github/workflows/apiserver.yml +++ b/.github/workflows/apiserver.yml @@ -57,7 +57,7 @@ jobs: BUNDLE_PATH: vendor/bundle BUNDLE_WITH: ci - - name: Infer library dependencies + - name: Detect library dependencies run: bundle exec debendencies . -o dpkg-dependencies.txt --tee working-directory: apiserver env: diff --git a/ansible/files/apiserver-deployer.sh b/ansible/files/apiserver-deployer.sh index 91b3521..52ba2ad 100644 --- a/ansible/files/apiserver-deployer.sh +++ b/ansible/files/apiserver-deployer.sh @@ -37,7 +37,7 @@ else mkdir "${TARGET_DIR}.tmp" tar --use-compress-program=unzstd -xf "/tmp/$ASSET_NAME" -C "${TARGET_DIR}.tmp" DPKG_DEPENDENCIES=$(cat "${TARGET_DIR}.tmp/dpkg-dependencies.txt") - if [[ -z "$DPKG_DEPENDENCIES" ]]; then + if [[ -n "$DPKG_DEPENDENCIES" ]]; then echo "Installing dependencies: $DPKG_DEPENDENCIES" apt satisfy -y --no-install-recommends --no-install-suggests "$DPKG_DEPENDENCIES" fi