Skip to content

Commit 731f00b

Browse files
committed
Set kubectl/kustomize namespace properly
1 parent 1a8c065 commit 731f00b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ jobs:
6161
# Deploy the Docker image to the GKE cluster
6262
- name: Deploy
6363
run: |-
64-
./kustomize edit set image web-editor-app=index.docker.io/$IMAGE:$GITHUB_SHA --namespace=staging
64+
./kustomize edit set namespace staging
65+
kubectl config set-context --current --namespace=staging
66+
./kustomize edit set image web-editor-app=index.docker.io/$IMAGE:$GITHUB_SHA
6567
./kustomize build . | kubectl apply -f -
66-
kubectl rollout status deployment/$DEPLOYMENT_NAME --namespace=staging
67-
kubectl get services -o wide --namespace=staging
68+
kubectl rollout status deployment/$DEPLOYMENT_NAME
69+
kubectl get services -o wide
6870

0 commit comments

Comments
 (0)