From a4756c4574f56bcded64ac1827ab9aee4f543896 Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Wed, 26 Jun 2024 13:34:45 +0800 Subject: [PATCH] ci: fix release kbs client if oras push failed, the original ci would still return true, which is not expected. Signed-off-by: Xynnn007 --- .github/workflows/release-kbs-client.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-kbs-client.yaml b/.github/workflows/release-kbs-client.yaml index a2518911aa..fd32f5de98 100644 --- a/.github/workflows/release-kbs-client.yaml +++ b/.github/workflows/release-kbs-client.yaml @@ -57,7 +57,9 @@ jobs: oras push \ ghcr.io/confidential-containers/staged-images/kbs-client:sample_only-${{ matrix.arch }}-linux-gnu-${commit_sha},latest-${{ matrix.arch }} \ kbs-client - [ "$(uname -m)" = "x86_64" ] && oras push ghcr.io/confidential-containers/staged-images/kbs-client:latest kbs-client || true + if [ "$(uname -m)" = "x86_64" ]; then + oras push ghcr.io/confidential-containers/staged-images/kbs-client:latest kbs-client + fi - name: Take a post-action for self-hosted runner if: always()