From 3e8165b1677a5a1ebbad5ab06796f48db55a5c6a Mon Sep 17 00:00:00 2001 From: Andrew Quijano Date: Thu, 22 Jun 2023 02:50:32 +0000 Subject: [PATCH] Updating EKS to use large EC2 instances. Also will try fixing dockerhub deployment --- .github/workflows/build-push-action.yml | 26 ++++++++++++------------- eks-config/config.yaml | 5 +++-- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-push-action.yml b/.github/workflows/build-push-action.yml index d3755b4..5e10949 100644 --- a/.github/workflows/build-push-action.yml +++ b/.github/workflows/build-push-action.yml @@ -9,32 +9,32 @@ # https://github.com/docker/build-push-action -name: Publish Docker image on: push: branches: - - 'main' + - "main" jobs: - docker: + build: runs-on: ubuntu-latest steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + - name: Checkout + uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build and push uses: docker/build-push-action@v4 with: context: . + file: ./Dockerfile push: true - tags: andrewquijano92/ppdt:latest + tags: ${{ secrets.DOCKERHUB_USERNAME }}/ppdt:latest \ No newline at end of file diff --git a/eks-config/config.yaml b/eks-config/config.yaml index 0b172c3..31249e7 100644 --- a/eks-config/config.yaml +++ b/eks-config/config.yaml @@ -7,7 +7,8 @@ metadata: version: "1.27" managedNodeGroups: - name: primary - instanceType: t2.small - minSize: 3 + instanceType: m5.large + desiredCapacity: 12 + minSize: 12 maxSize: 15 spot: true \ No newline at end of file