Skip to content

Commit

Permalink
verify cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
M7mdisk committed Feb 13, 2025
1 parent 0a94a43 commit 75d58b4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,18 @@ jobs:
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
run: |
echo "$KUBE_CONFIG" > kubeconfig
export KUBECONFIG=kubeconfig
mkdir -p ~/.kube
echo "$KUBE_CONFIG" > ~/.kube/config
export KUBECONFIG=~/.kube/config
- name: verify kubectl
run: |
kubectl version --client
kubectl config view
kubectl cluster-info
- name: Deploy application
run: |
export KUBECONFIG=~/.kube/config
epoch_time=$(date +%s)
image_tag="${epoch_time}-${GITHUB_SHA::7}"
image_name="${{ env.IMAGE_NAME }}:${image_tag}"
Expand Down

0 comments on commit 75d58b4

Please sign in to comment.