From 4d024f999db7d1c8e148886ab0302b2499a9211b Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Thu, 30 Jun 2022 17:08:41 +0200 Subject: [PATCH] ci(helm): forcing namespace Signed-off-by: rjshrjndrn --- .github/workflows/frontend.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index 0a41779b0..d6d420e16 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -91,7 +91,10 @@ jobs: cat /tmp/image_override.yaml # Deploy command - helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --atomic --set skipMigration=true --no-hooks | kubectl apply -f - + mv openreplay/charts/frontend /tmp + rm -rf openreplay/charts/* + mv /tmp/frontend openreplay/charts/ + helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --atomic --set skipMigration=true --no-hooks | kubectl apply -n app -f - env: DOCKER_REPO: ${{ secrets.OSS_REGISTRY_URL }} IMAGE_TAG: ${{ github.sha }} @@ -152,7 +155,10 @@ jobs: cat /tmp/image_override.yaml # Deploy command - helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set skipMigration=true --no-hooks | kubectl apply -f - + mv openreplay/charts/frontend /tmp + rm -rf openreplay/charts/* + mv /tmp/frontend openreplay/charts/ + helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set skipMigration=true --no-hooks | kubectl apply -n app -f - env: DOCKER_REPO: ${{ secrets.EE_REGISTRY_URL }} # We're not passing -ee flag, because helm will add that.