Skip to content

Commit

Permalink
Update deployDev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pradumchintamani authored Jun 26, 2024
1 parent 373f11a commit 03ac9b5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/deployDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ on:

jobs:
build:
runs-on: machine1
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
aws-access-key-id: ${{ secrets.AWS_SECRET_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}

- name: Login to DockerHub
uses: docker/[email protected]
with:
Expand All @@ -24,16 +31,11 @@ jobs:
docker push hellopradum/backend-wanderlust:latest
docker push hellopradum/frontend-wanderlust:latest
- name: Configure kubectl
run: |
mkdir -p ~/.kube
echo "$KUBE_CONFIG" | base64 -d > ~/.kube/config
kubectl version --client
- name: Update kubeconfig
run: aws eks update-kubeconfig --name demo-ekscluster

- name: Create and claim persistent volume
run: |
cd kubernetes
sudo su
kubectl apply -f persistentVolume.yaml
kubectl apply -f persistentVolumeClaim.yaml
Expand Down

0 comments on commit 03ac9b5

Please sign in to comment.