Skip to content

Commit

Permalink
trying to fix architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
z0ph committed Sep 17, 2024
1 parent 6dfbf06 commit f91296f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ ECR ?= 567589703415.dkr.ecr.eu-west-1.amazonaws.com/mamip-ecr-dev

# Automation is done by Github Actions
login:
@aws ecr get-login-password | docker login --username AWS --password-stdin $(ECR)
@aws ecr get-login-password --region $(AWS_REGION) | docker login --username AWS --password-stdin $(ECR)

build-docker: login
@docker build -t mamip-image ./automation/
@docker buildx build --platform=linux/arm64 -t mamip-image ./automation/
@docker tag mamip-image $(ECR)
@docker push $(ECR)

Expand Down
2 changes: 1 addition & 1 deletion automation/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM public.ecr.aws/amazonlinux/amazonlinux:2.0.20240903.0-arm64v8
FROM --platform=linux/amd64 public.ecr.aws/amazonlinux/amazonlinux:2.0.20240903.0-arm64v8

# Install dependencies
RUN yum update -y && \
Expand Down

0 comments on commit f91296f

Please sign in to comment.