Skip to content

Commit

Permalink
remove image build job from test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdelsordo committed Sep 26, 2023
1 parent 17f3e41 commit 2d1b463
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2d1b463

Please sign in to comment.