From 15a21867cd89d156230236f8813c67ae7fe540b8 Mon Sep 17 00:00:00 2001 From: Damian Badura Date: Mon, 25 Nov 2024 16:15:01 +0100 Subject: [PATCH] fix img dir --- .github/scripts/deploy_busola.sh | 5 +++-- resources/base/backend/kustomization.yaml | 4 ++++ resources/base/web/kustomization.yaml | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/scripts/deploy_busola.sh b/.github/scripts/deploy_busola.sh index a211ce0d87..f29a9fb516 100755 --- a/.github/scripts/deploy_busola.sh +++ b/.github/scripts/deploy_busola.sh @@ -18,14 +18,15 @@ print_k8s_resources() ENV=${ENV?"env is not set"} IMG_TAG=$1 +IMG_DIR=dev kubectl delete configmap environment --ignore-not-found=true kubectl create configmap environment --from-literal=ENVIRONMENT="${ENV}" echo "### Deploying busola from: ${IMG_TAG}" cd resources -(cd base/web && kustomize edit set image busola-web=europe-docker.pkg.dev/kyma-project/prod/busola-web:"${IMG_TAG}") -(cd base/backend && kustomize edit set image busola-backend=europe-docker.pkg.dev/kyma-project/prod/busola-backend:"${IMG_TAG}") +(cd base/web && kustomize edit set image busola-web=europe-docker.pkg.dev/kyma-project/${IMG_DIR}/busola-web:"${IMG_TAG}") +(cd base/backend && kustomize edit set image busola-backend=europe-docker.pkg.dev/kyma-project/${IMG_DIR}/busola-backend:"${IMG_TAG}") kustomize build base/ | kubectl apply -f- kubectl apply -f ingress/ingress.yaml diff --git a/resources/base/backend/kustomization.yaml b/resources/base/backend/kustomization.yaml index 6a0888caff..70b9475217 100644 --- a/resources/base/backend/kustomization.yaml +++ b/resources/base/backend/kustomization.yaml @@ -4,3 +4,7 @@ resources: - deployment.yaml - hpa.yaml - service.yaml +images: + - name: busola-backend + newName: europe-docker.pkg.dev/kyma-project/prod/busola-backend + newTag: PR-3499 diff --git a/resources/base/web/kustomization.yaml b/resources/base/web/kustomization.yaml index 8c9f6e654b..99e71e986c 100644 --- a/resources/base/web/kustomization.yaml +++ b/resources/base/web/kustomization.yaml @@ -5,3 +5,7 @@ resources: - deployment.yaml - hpa.yaml - service.yaml +images: + - name: busola-web + newName: europe-docker.pkg.dev/kyma-project/prod/busola-web + newTag: PR-3499