Skip to content

Commit

Permalink
Force ARM Platform Docker Build for Graviton2 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
h2ouw8n4 committed Nov 6, 2023
1 parent 8143bb4 commit c7ae702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build Docker Image
run: docker build -t ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/wp:latest ./docker
run: docker buildx build --platform linux/arm64/v8 -t ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/wp:latest ./docker
- name: Push Docker Image
run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/wp:latest
2 changes: 1 addition & 1 deletion fargate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ resource "aws_ecs_task_definition" "this" {
cpu_architecture = "ARM64" # Indicate Graviton2 processor architecture
operating_system_family = "LINUX"
}

container_definitions = <<CONTAINER_DEFINITION
[
{
Expand Down

0 comments on commit c7ae702

Please sign in to comment.