Skip to content

Commit e4e44cf

Browse files
committed
updated workflow
1 parent 29ac7c1 commit e4e44cf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/workflow.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,10 @@ jobs:
4040
IMAGE_TAG="${{ needs.build.outputs.id }}" |
4141
sed -i "s|image:.*|image: ${IMAGE_TAG}|" ./challenge9/kubernetes/deployment.yaml
4242
- name: Deploy the app to kubernetes
43-
run: kubectl apply -f ./challenge9/kubernetes/deployment.yaml
43+
run: |
44+
kubectl config set-cluster minikube --server=https://192.168.49.2:8443 --insecure-skip-tls-verify=true
45+
kubectl config set-credentials my-remote-access-user --token="${{ secrets.TOKEN }}"
46+
kubectl config set-context my-remote-access-context --cluster=minikube --user=my-remote-access-user --namespace=default
47+
kubectl config use-context my-remote-access-context
48+
kubectl get pods --all-namespaces
49+
kubectl apply -f ./challenge9/kubernetes/deployment.yaml

0 commit comments

Comments
 (0)