Skip to content

Commit 5890b50

Browse files
committed
add kubeconfig update to same step
1 parent 1e75daa commit 5890b50

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/deploy-to-eks.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ jobs:
3232
role-to-assume: ${{ secrets.GH_ACTIONS_ROLE }}
3333
aws-region: ${{ env.AWS_REGION }}
3434

35-
- name: Update kube config
36-
run: aws eks update-kubeconfig --name ${{ env.EKS_CLUSTER_NAME }} --region ${{ env.AWS_REGION }}
37-
3835
- name: Deploy to EKS
3936
run: |
37+
aws eks update-kubeconfig --name ${{ env.EKS_CLUSTER_NAME }} --region ${{ env.AWS_REGION }}
4038
kubectl set image deployment/server server=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }} -n ${{ env.NAMESPACE }}
4139
kubectl rollout status deployment/server -n ${{ env.NAMESPACE }}

0 commit comments

Comments
 (0)