From fdd9243bd715ee16921d648720e9e14a9d1a60d7 Mon Sep 17 00:00:00 2001 From: Univero <140871040+universero@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:08:47 +0800 Subject: [PATCH] Update upgrade.yml sed 's/\(image: ${{ env.USERNAME }}\/${{ env.IMAGE_NAME }}:\).*$/\1${{ needs.build.outputs.version }}/' --- .github/workflows/upgrade.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml index 4f54961..4e6e7c4 100644 --- a/.github/workflows/upgrade.yml +++ b/.github/workflows/upgrade.yml @@ -80,5 +80,5 @@ jobs: mkdir $HOME/.kube echo "${{ secrets.KUBE_CONFIG }}" > $HOME/.kube/config kubectl get deployment ${{ env.IMAGE_NAME }} -n ${{ vars.BASE_TEST_NAMESPACE }} -o yaml |\ - sed 's/^\( - image: xhpolaris\/${{ env.IMAGE_NAME }}:\).*$/\1${{ needs.build.outputs.version }}/' |\ - kubectl apply -f - \ No newline at end of file + sed 's/\(image: ${{ env.USERNAME }}\/${{ env.IMAGE_NAME }}:\).*$/\1${{ needs.build.outputs.version }}/' + kubectl apply -f -