Skip to content

Commit

Permalink
[EASI-4577] Create test eks pipeline (#2899)
Browse files Browse the repository at this point in the history
create test eks pipeline
  • Loading branch information
mynar7 authored Nov 20, 2024
1 parent ae7f49d commit 64a628e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy_to_eks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy To EKS

on:
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
banana:
runs-on: ubuntu-latest
environment: "dev"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4.0.2
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-west-2
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Update kubeconfig
run: aws eks update-kubeconfig --name dev-easi-poc-cluster --region us-west-2
- name: test kubectl
run: kubectl get nodes -A

0 comments on commit 64a628e

Please sign in to comment.