Skip to content

Commit c707ef9

Browse files
committed
update deploy
1 parent 19d84b6 commit c707ef9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717

1818
- name: checkout config file
1919
run: |
20-
ls configuration/
2120
mv configuration/samurai-face-app/config.yaml .env.local
2221
2322
- name: Login to Docker Hub
@@ -39,8 +38,12 @@ jobs:
3938

4039
- name: Configure Kubernetes
4140
run: |
42-
echo "${{ secrets.KUBE_CONFIG }}" > kubeconfig.yaml
43-
export KUBECONFIG=kubeconfig.yaml
41+
mkdir -p ~/.kube
42+
echo "${{ secrets.KUBE_CONFIG }}" > ~/.kube/config
43+
chmod 600 ~/.kube/config
44+
45+
kubectl cluster-info
46+
kubectl get nodes
4447
4548
- name: Rollout Restart Deployment
4649
run: |

0 commit comments

Comments
 (0)