diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e993cf4..841c000e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,38 +72,3 @@ jobs: run: yarn test-style - name: Run tests run: yarn test - - build_image: - name: Build Image - runs-on: ubuntu-latest - defaults: - run: - working-directory: . - needs: [test-backend] - steps: - - name: Check out code - uses: actions/checkout@v3 - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - # Add support for more platforms with QEMU (optional) - # https://github.com/docker/setup-qemu-action - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - platforms: linux/arm64 - - name: Build, tag, and push image to Amazon ECR - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: urban-league-heat-pump-accelerator - IMAGE_TAG: ${{ github.sha }} - run: | - docker buildx build --platform linux/arm64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f ./backend/Dockerfile . --push