From 950bb381ee7e64b771c851834a647823886f8162 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 2 Oct 2023 16:45:02 +0200 Subject: [PATCH] fix(actions): kube apply Signed-off-by: rjshrjndrn --- .github/workflows/assist-stats.yaml | 4 ++-- assist-stats/build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/assist-stats.yaml b/.github/workflows/assist-stats.yaml index d51ebd7dc..d411f650e 100644 --- a/.github/workflows/assist-stats.yaml +++ b/.github/workflows/assist-stats.yaml @@ -113,7 +113,7 @@ jobs: mv openreplay/charts/{ingress-nginx,assist-stats,quickwit} /tmp rm -rf openreplay/assist-stats/* mv /tmp/{ingress-nginx,assist-stats,quickwit} openreplay/charts/ - helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set ingress-nginx.enabled=false --set skipMigration=true --no-hooks | kubectl apply -n app -f - + helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set ingress-nginx.enabled=false --set skipMigration=true --no-hooks | kubectl apply -f - env: DOCKER_REPO: ${{ secrets.OSS_REGISTRY_URL }} IMAGE_TAG: ${{ github.ref_name }}_${{ github.sha }} @@ -157,7 +157,7 @@ jobs: mv openreplay/charts/{ingress-nginx,assist-stats,quickwit} /tmp rm -rf openreplay/charts/* mv /tmp/{ingress-nginx,assist-stats,quickwit} openreplay/charts/ - helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set ingress-nginx.enabled=false --set skipMigration=true --no-hooks | kubectl apply -n app -f - + helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set ingress-nginx.enabled=false --set skipMigration=true --no-hooks | kubectl apply -f - env: DOCKER_REPO: ${{ secrets.EE_REGISTRY_URL }} # We're not passing -ee flag, because helm will add that. diff --git a/assist-stats/build.sh b/assist-stats/build.sh index 031fb62a6..a5541d503 100644 --- a/assist-stats/build.sh +++ b/assist-stats/build.sh @@ -11,7 +11,7 @@ exit_err() { err_code=$1 if [[ $err_code != 0 ]]; then - exit $err_code + exit "$err_code" fi }