Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
danishkhan24 committed Aug 29, 2024
1 parent a4e37b3 commit 921db4f
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,48 +14,23 @@ jobs:
build_and_push:
runs-on: ubuntu-latest

env:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true

- name: Log in to Amazon ECR
uses: aws-actions/amazon-ecr-login@v1
with:
region: ${{ secrets.AWS_REGION }}

# # Caching builds
# - name: Cache Docker layers for Frontend
# uses: actions/cache@v2
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ hashFiles('klipbored-frontend/Dockerfile', 'klipbored-frontend/**') }}-${{ github.run_id }}
# restore-keys: |
# ${{ runner.os }}-buildx-

- name: Build and Push Frontend Docker Image
run: |
docker build -t ${{ secrets.FRONTEND_REPO }}:latest ./klipbored-frontend
docker push ${{ secrets.FRONTEND_REPO }}:latest
# # Caching builds
# - name: Cache Docker layers for Backend
# uses: actions/cache@v2
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ hashFiles('klipbored-backend/Dockerfile', 'klipbored-backend/**') }}-${{ github.run_id }}
# restore-keys: |
# ${{ runner.os }}-buildx-

- name: Build and Push Backend Docker Image
run: |
docker build -t ${{ secrets.BACKEND_REPO }}:latest ./klipbored-backend
Expand All @@ -71,7 +46,7 @@ jobs:

- name: Update Kubeconfig
run: |
aws eks update-kubeconfig --name ${{ secrets.EKS_CLUSTER_NAME }} --region ${{ env.AWS_REGION }}
aws eks update-kubeconfig --name ${{ secrets.EKS_CLUSTER_NAME }} --region ${{ secrets.AWS_REGION }}
- name: Deploy Frontend to EKS
run: |
Expand Down

0 comments on commit 921db4f

Please sign in to comment.