Skip to content

Commit

Permalink
fix img dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Dec 18, 2024
1 parent 54797fc commit 15a2186
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/deploy_busola.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions resources/base/backend/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions resources/base/web/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 15a2186

Please sign in to comment.