Skip to content

Github Actions for AWS EKS Cluster using Kubectl command args

Notifications You must be signed in to change notification settings

ravinayag/aws-eks-actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS eks-action

Interacts with your kubernetes EKS clusters using kubectl commands.

Usage

EKS Example

name: Deploy
on:
  push:
    branches:
      - develop
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Deploy
        uses: ravinayag/[email protected]
        env:
          aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws_region: $AWS_REGION
          cluster_name: $EKS_CLUSTER_NAME
          ECR_REPOSITORY: $REPO_NAME
          K8S_DEPLOYMENT_NAME: $K8S_DEPLOYMENT_NAME
          K8S_NAMESPACE: $K8S_NAMESPACE
          IMAGE_TAG: ${{ github.sha }}
        with:
          args: |
            kubectl set image deployment/$K8S_DEPLOYMENT_NAME -n $K8S_NAMESPACE $K8S_DEPLOYMENT_NAME=$ECR_REPOSITORY:$IMAGE_TAG &&
            kubectl rollout status deployment/$K8S_DEPLOYMENT -n $K8S_NAMESPACE

About

Github Actions for AWS EKS Cluster using Kubectl command args

Resources

Stars

Watchers

Forks

Packages

No packages published