From 7317a2fe9c551582e10585920c351a9b03bc1dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Mon, 22 Apr 2024 11:28:42 +0200 Subject: [PATCH] build-lxd.yml: Skip setup-lxd step if using incus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> --- .github/workflows/build-lxd.yml | 4 ++++ .github/workflows/build-sd-images.yml | 5 +++-- .github/workflows/vm-tests.yml | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-lxd.yml b/.github/workflows/build-lxd.yml index 5ceba1184..7bc232685 100644 --- a/.github/workflows/build-lxd.yml +++ b/.github/workflows/build-lxd.yml @@ -70,6 +70,7 @@ jobs: - name: Cleanup lxd run: test -z "$("$LXC" profile device show default | grep eth0)" || "$LXC" profile device remove default eth0 - uses: whywaita/setup-lxd@v1 + if: ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }} continue-on-error: true with: lxd_version: latest/stable @@ -144,6 +145,7 @@ jobs: echo "VERSION=$version" >> "$GITHUB_ENV" echo "previous_version=${version}" >> $GITHUB_OUTPUT - uses: whywaita/setup-lxd@v1 + if: ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }} continue-on-error: true with: lxd_version: latest/stable @@ -185,6 +187,7 @@ jobs: LXC: "${{ needs.determine-runner.outputs.lxc_cmd }}" steps: - uses: whywaita/setup-lxd@v1 + if: ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }} continue-on-error: true with: lxd_version: latest/stable @@ -369,6 +372,7 @@ jobs: - name: Cleanup lxd run: test -z "$("$LXC" profile device show default | grep eth0)" || "$LXC" profile device remove default eth0 - uses: whywaita/setup-lxd@v1 + if: ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }} continue-on-error: true with: lxd_version: latest/stable diff --git a/.github/workflows/build-sd-images.yml b/.github/workflows/build-sd-images.yml index 5d7188709..4cac3f1da 100644 --- a/.github/workflows/build-sd-images.yml +++ b/.github/workflows/build-sd-images.yml @@ -314,8 +314,9 @@ jobs: echo -e "${LOG_DIAG} ncp.log: " "${CONTAINER_CMD[@]}" -q ncp /bin/bash -c "tail -n20 /var/log/ncp.log" |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true echo "================" - echo "Nextcloud log: " - "${CONTAINER_CMD[@]}" -q ncp cat /opt/ncdata/data/nextcloud.log + echo "${LOG_DIAG} Nextcloud log: " + "${CONTAINER_CMD[@]}" -q ncp /bin/bash -c 'ls -l /opt/ncdata/data/nextcloud.log' |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true + "${CONTAINER_CMD[@]}" -q ncp /bin/bash -c 'cat /opt/ncdata/data/nextcloud.log' |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true sleep 12 continue } diff --git a/.github/workflows/vm-tests.yml b/.github/workflows/vm-tests.yml index ab5e61bec..ba028fe57 100644 --- a/.github/workflows/vm-tests.yml +++ b/.github/workflows/vm-tests.yml @@ -312,11 +312,11 @@ jobs: echo "===========================================" ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" tail /var/log/ncp-install.log; echo "===========================================" - echo "and ncp.log:" + echo "ncp.log:" echo "===========================================" ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" tail /var/log/ncp.log; echo "===========================================" - echo "and nextcloud.log:" + echo "nextcloud.log:" ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" tail /opt/ncdata/data/nextcloud.log; exit 1 }